Clear html video resources on disconnect

This commit is contained in:
Alexey Khit
2023-07-08 09:31:05 +03:00
parent ce61d5759c
commit 52a4fc329c
+3
View File
@@ -299,6 +299,9 @@ export class VideoRTC extends HTMLElement {
this.pc.close();
this.pc = null;
}
this.video.src = '';
this.video.srcObject = null;
}
/**