Merge branch 'master' of github.com:ZoneMinder/zoneminder
commit
abd3097af3
|
@ -224,7 +224,7 @@ function MonitorStream(monitorData) {
|
|||
}
|
||||
}; // setStreamScale
|
||||
|
||||
this.start = function(delay=500) {
|
||||
this.start = function() {
|
||||
if (this.janusEnabled) {
|
||||
let server;
|
||||
if (ZM_JANUS_PATH) {
|
||||
|
|
|
@ -318,7 +318,7 @@ function changeScale() {
|
|||
currentScale = newSize.autoScale;
|
||||
} else if (scaleSel.indexOf("px") > -1) {
|
||||
newSize = scaleToFit(eventData.Width, eventData.Height, eventViewer, false, $j('#wrapperEventVideo')); // Only for calculating the maximum width!
|
||||
let w = h = '';
|
||||
let w, h = w = '';
|
||||
if (landscape) {
|
||||
w = Math.min(stringToNumber(scaleSel), newSize.width);
|
||||
h = w / (eventData.Width / eventData.Height);
|
||||
|
|
|
@ -583,9 +583,7 @@ function startMonitors() {
|
|||
|
||||
const isOut = isOutOfViewport(monitor.getElement());
|
||||
if (!isOut.all) {
|
||||
// Start the fps and status updates. give a random delay so that we don't assault the server
|
||||
const delay = Math.round( (Math.random()+0.5)*statusRefreshTimeout );
|
||||
monitors[i].start(delay);
|
||||
monitor.start();
|
||||
}
|
||||
if ((monitor.type == 'WebSite') && (monitor.refresh > 0)) {
|
||||
setInterval(reloadWebSite, monitor.refresh*1000, i);
|
||||
|
|
Loading…
Reference in New Issue