From 6d24ad8cfa08a211b0fcdb63f92b3ee2e0366803 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Fri, 25 Jul 2025 20:52:05 +0300 Subject: [PATCH] Fix: RTSP2Web after closing "RTCPeerConnection" browser should not try to get object (MonitorStream.js) --- web/js/MonitorStream.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/js/MonitorStream.js b/web/js/MonitorStream.js index 45de21dd7..54c53a274 100644 --- a/web/js/MonitorStream.js +++ b/web/js/MonitorStream.js @@ -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; }