Cisco Cisco StadiumVision Mobile Streamer Maintenance Manual

Page of 56
Known Issues with Firmware
The following are known firmware issues.
Position: Fixed and Z-index
Assigning an HTML element the position: fixed property will not produce the
desired results if the element has a z-index property specified as well. Scrolling the
page upward will cause the element to increment downwards until it eventually
disappears off the edge of the screen.
Time Localization in JavaScript
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 media player. The below code provides a workaround in JavaScript if
you would like to display time using a 12-hour clock:
1. Create the following function:
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');
}
46 of 48
© Cisco Systems, Inc. All rights reserved.