mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 00:01:22 +00:00
one last stab :P
This commit is contained in:
1 parent
b88bd62691
commit
517b79cdd7
1 file changed
+1
-1
@@ -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<RTCSessionDescriptionInit>(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";
|
||||
|
||||
Reference in new issue
Block a user