HTML Development

Known Issues

3min
brightsign’s html5 rendering engine is a constant work in progress the following are known issues that we are working to resolve in future versions of player firmware rotated 4k output displaying an html page and rotated video while using a 4k output mode will cause the video to glitch this is the case even if the video is not part of the html page (i e it's displayed and rotated using brightscript) localized javascript time the javascript tolocaletimestring() call does not retrieve localized time formats (i e 24 hour vs 12 hour clock) instead, the hour/minute clock defaults to 24 hour time on the brightsign player the below code provides a workaround in javascript if you would like to display time using a 12 hour clock function format12hour(date) { var zero = '0'; hh = date gethours(); mm = date getminutes(); ss = date getseconds() if((hh % 12) == 0) hh = 12; else hh %= 12; // pad zero values to 00 hh = (zero+hh) slice( 2); mm = (zero+mm) slice( 2); ss = (zero+ss) slice( 2); return hh + ' ' + mm + ' ' + ss + ' ' + ((date gethours() < 12) ? 'am' 'pm'); } if you would prefer not to display seconds information, you can replace the above “return” line with the following return hh + ' ' + mm + ' ' + ((date gethours() < 12) ? 'am' 'pm'); implement the function in the html script as follows var datestring = (startjsdate getmonth() + 1) + "/" + startjsdate getdate(); if (!startdatetime isdateonly()) { datestring += " " + format12hour(startjsdate); }