mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-28 18:53:49 -04:00
Correctly close go2rtc stream when executing "stop" command (MonitorStream.js)
This should be enough.
This commit is contained in:
@@ -461,11 +461,7 @@ function MonitorStream(monitorData) {
|
||||
this.streamCmdTimer = clearInterval(this.streamCmdTimer);
|
||||
this.started = false;
|
||||
if (-1 !== this.player.indexOf('go2rtc')) {
|
||||
if (this.webrtc) {
|
||||
if (this.webrtc.close) this.webrtc.close();
|
||||
stream.srcObject = null;
|
||||
this.webrtc = null;
|
||||
}
|
||||
stream.disconnectedCallback();
|
||||
} else if (-1 !== this.player.indexOf('rtsp2web')) {
|
||||
if (this.webrtc) {
|
||||
if (this.webrtc.close) this.webrtc.close();
|
||||
|
||||
Reference in New Issue
Block a user