mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-10 04:11:59 -08:00
webrtc muxer: fix freeze on Firefox
This commit is contained in:
parent
5a0143056a
commit
777860f757
1 changed files with 2 additions and 1 deletions
|
|
@ -80,7 +80,8 @@ class Receiver {
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue