Skip to content

Commit

Permalink
Clear html video resources on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jul 8, 2023
1 parent ce61d57 commit 52a4fc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/video-rtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ export class VideoRTC extends HTMLElement {
this.pc.close();
this.pc = null;
}

this.video.src = '';
this.video.srcObject = null;
}

/**
Expand Down

0 comments on commit 52a4fc3

Please sign in to comment.