Skip to content

Commit

Permalink
webrtc muxer: fix freeze on Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Jan 6, 2023
1 parent 5a01430 commit 777860f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/core/webrtc_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
switch (this.pc.iceConnectionState) {
case "connected":
this.pc.onicecandidate = undefined;
this.ws.onmessage = undefined;
// do not unbind ws.onmessage due to a strange Firefox bug
// if all callbacks are removed from WS, video freezes after some seconds.
this.ws.onerror = undefined
this.ws.onclose = undefined;
// do not close the WebSocket connection
Expand Down

0 comments on commit 777860f

Please sign in to comment.