If AYSW is active, don't restart stream when window becomes visible again

pull/4140/head
Isaac Connor 2024-10-29 13:31:00 -04:00
parent 6d1e273442
commit e616449af6
1 changed files with 10 additions and 8 deletions

View File

@ -1185,15 +1185,17 @@ document.onvisibilitychange = () => {
}, 15*1000);
} else {
TimerHideShow = clearTimeout(TimerHideShow);
//Start monitors when show page
for (let i = 0, length = monitors.length; i < length; i++) {
const monitor = monitors[i];
if ((!ZM_WEB_VIEWING_TIMEOUT) || (idle < ZM_WEB_VIEWING_TIMEOUT)) {
//Start monitors when show page
for (let i = 0, length = monitors.length; i < length; i++) {
const monitor = monitors[i];
const isOut = isOutOfViewport(monitor.getElement());
if ((!isOut.all) && !monitor.started) {
monitor.start();
}
}
const isOut = isOutOfViewport(monitor.getElement());
if ((!isOut.all) && !monitor.started) {
monitor.start();
}
} // end foreach monitor
} // end if not AYSW
}
};