mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-04 00:15:20 -04:00
Merge branch 'master' into patch-530122
This commit is contained in:
2 files changed
+25
-4
No files matched your search
+18
-3
@@ -1784,7 +1784,12 @@ function MonitorStream(monitorData) {
|
||||
stream.mode = this.player.substring(this.player.indexOf('_')+1);
|
||||
}
|
||||
const video_el = this.getAVStream();
|
||||
if (video_el) video_el.muted = this.muted;
|
||||
if (video_el) {
|
||||
video_el.muted = this.muted;
|
||||
} else {
|
||||
console.warn(`go2rtc DOM element of video stream for monitor with ID=${this.id} not found`);
|
||||
return;
|
||||
}
|
||||
this.handlerEventListenerStream(video_el);
|
||||
|
||||
clearInterval(this.statusCmdTimer); // Fix for issues in Chromium when quickly hiding/showing a page. Doesn't clear statusCmdTimer when minimizing a page https://stackoverflow.com/questions/9501813/clearinterval-not-working
|
||||
@@ -1813,7 +1818,12 @@ function MonitorStream(monitorData) {
|
||||
|
||||
const rtsp2webModUrl = url;
|
||||
const video_el = this.getAVStream();
|
||||
if (video_el) video_el.muted = this.muted;
|
||||
if (video_el) {
|
||||
video_el.muted = this.muted;
|
||||
} else {
|
||||
console.warn(`rtsp2web DOM element of video stream for monitor with ID=${this.id} not found`);
|
||||
return;
|
||||
}
|
||||
this.handlerEventListenerStream(video_el);
|
||||
rtsp2webModUrl.username = '';
|
||||
rtsp2webModUrl.password = '';
|
||||
@@ -1914,7 +1924,12 @@ function MonitorStream(monitorData) {
|
||||
stream.setAttribute("autoplay", "");
|
||||
stream.setAttribute("muted", this.muted);
|
||||
const video_el = this.getAVStream();
|
||||
if (video_el) video_el.muted = this.muted;
|
||||
if (video_el) {
|
||||
video_el.muted = this.muted;
|
||||
} else {
|
||||
console.warn(`janus DOM element of video stream for monitor with ID=${this.id} not found`);
|
||||
return;
|
||||
}
|
||||
this.handlerEventListenerStream(video_el);
|
||||
if (ZM_JANUS_PATH) {
|
||||
server = ZM_JANUS_PATH;
|
||||
|
||||
+7
-1
@@ -261,7 +261,13 @@ var zmPanZoom = {
|
||||
if (videoJs) videoJs.style.pointerEvents = 'none';
|
||||
} else {
|
||||
this.panZoom[id].setOptions({handleStartEvent: (event) => {}});
|
||||
if (videoJs) videoJs.style.pointerEvents = '';
|
||||
if (videoJs) {
|
||||
if (this.shifted || this.ctrled || this.alted) {
|
||||
videoJs.style.pointerEvents = 'none';
|
||||
} else {
|
||||
videoJs.style.pointerEvents = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user