Fix: RTSP2Web after closing "RTCPeerConnection" browser should not try to get object (MonitorStream.js)

This commit is contained in:
IgorA100
2025-07-25 20:52:05 +03:00
committed by GitHub
parent 385ae52f2f
commit 6d24ad8cfa

View File

@@ -475,6 +475,7 @@ function MonitorStream(monitorData) {
} else if (-1 !== this.player.indexOf('rtsp2web')) {
if (this.webrtc) {
if (this.webrtc.close) this.webrtc.close();
stream.src = '';
stream.srcObject = null;
this.webrtc = null;
}