From 52a4fc329c1a78dd07cd1966551e86fda4c1f43a Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Sat, 8 Jul 2023 09:31:05 +0300 Subject: [PATCH] Clear html video resources on disconnect --- www/video-rtc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/video-rtc.js b/www/video-rtc.js index 19150ddb..e081c451 100644 --- a/www/video-rtc.js +++ b/www/video-rtc.js @@ -299,6 +299,9 @@ export class VideoRTC extends HTMLElement { this.pc.close(); this.pc = null; } + + this.video.src = ''; + this.video.srcObject = null; } /**