zoneminder/web/skins/classic/views/js/zones.js

26 lines
650 B
JavaScript
Raw Normal View History

2020-09-03 05:28:08 +08:00
var requestQueue = new Request.Queue({
concurrent: monitorData.length,
stopOnFailure: false
});
function streamCmdQuit( ) {
if ( action ) {
2017-10-04 22:48:37 +08:00
streamCmdReq.send( streamCmdParms+"&command="+CMD_QUIT );
}
}
2020-09-03 05:28:08 +08:00
var monitors = new Array();
function initPage() {
for ( var i = 0, length = monitorData.length; i < length; i++ ) {
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);