2016-04-11 04:33:55 +08:00
|
|
|
|
2020-09-03 05:28:08 +08:00
|
|
|
var requestQueue = new Request.Queue({
|
|
|
|
concurrent: monitorData.length,
|
|
|
|
stopOnFailure: false
|
|
|
|
});
|
|
|
|
function streamCmdQuit( ) {
|
2019-01-19 23:32:40 +08:00
|
|
|
if ( action ) {
|
2017-10-04 22:48:37 +08:00
|
|
|
streamCmdReq.send( streamCmdParms+"&command="+CMD_QUIT );
|
2019-01-19 23:32:40 +08:00
|
|
|
}
|
2016-04-11 04:33:55 +08:00
|
|
|
}
|
|
|
|
|
2020-09-03 05:28:08 +08:00
|
|
|
var monitors = new Array();
|
|
|
|
|
|
|
|
function initPage() {
|
2020-09-04 22:02:43 +08:00
|
|
|
for ( var i = 0, length = monitorData.length; i < length; i++ ) {
|
2020-09-03 05:28:08 +08:00
|
|
|
monitors[i] = new MonitorStream(monitorData[i]);
|
|
|
|
|
|
|
|
// Start the fps and status updates. give a random delay so that we don't assault the server
|
|
|
|
var delay = Math.round( (Math.random()+0.5)*statusRefreshTimeout );
|
|
|
|
monitors[i].start(delay);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
window.addEventListener('DOMContentLoaded', initPage);
|
|
|
|
|