diff --git a/src/webpage/voice.ts b/src/webpage/voice.ts index 4bce2ed..a4ea7e0 100644 --- a/src/webpage/voice.ts +++ b/src/webpage/voice.ts @@ -854,7 +854,6 @@ a=rtcp-mux\r`; async makeOffer() { if (this.off) { if (this.pc?.localDescription?.sdp) return {sdp: this.pc?.localDescription?.sdp}; - return this.off; } return (this.off = new Promise(async (res) => { @@ -988,6 +987,7 @@ a=rtcp-mux\r`; this.status = "makingOffer"; const pc = new RTCPeerConnection({ bundlePolicy: "max-bundle", + rtcpMuxPolicy: "negotiate", }); pc.ontrack = async (e) => { this.status = "done";