Merge branch 'master' of github.com:ZoneMinder/zoneminder

pull/4170/head
Isaac Connor 2024-10-03 14:42:57 -04:00
commit abd3097af3
3 changed files with 3 additions and 5 deletions

View File

@ -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) {

View File

@ -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);

View File

@ -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);