Correctly close go2rtc stream when executing "stop" command (MonitorStream.js)

This should be enough.
This commit is contained in:
IgorA100
2025-07-21 23:40:40 +03:00
committed by GitHub
parent 74290ca416
commit c758aa6889

View File

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