From f1f27e5164ed560680673e4588353abe92b9b40d Mon Sep 17 00:00:00 2001 From: Ole Date: Sun, 14 Jun 2026 19:41:21 +0200 Subject: [PATCH] SDP-Minify (stripSDP) deaktiviert: verursachte Parsefehler bei setRemoteDescription --- p2p.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/p2p.js b/p2p.js index 1854599..7a39a20 100644 --- a/p2p.js +++ b/p2p.js @@ -47,8 +47,7 @@ class MeshNet { signalSent = true; this._log('SDP-Signal (Offer) empfangen'); - const minSignal = signal.sdp ? { ...signal, sdp: stripSDP(signal.sdp) } : signal; - const packed = await pack({ v: 1, id: this.myPeerId, s: minSignal }); + const packed = await pack({ v: 1, id: this.myPeerId, s: signal }); this._currentQRData = encode45(packed); this._fullSDPData = this._currentQRData; @@ -108,8 +107,7 @@ class MeshNet { peer.on('signal', async signal => { if (answerSent) return; answerSent = true; - const minSignal = signal.sdp ? { ...signal, sdp: stripSDP(signal.sdp) } : signal; - const packed = await pack({ v: 1, id: this.myPeerId, s: minSignal, to: remoteId }); + const packed = await pack({ v: 1, id: this.myPeerId, s: signal, to: remoteId }); const answerData = encode45(packed); if (this.onanswerready) this.onanswerready(answerData); this._log('Answer QR erstellt');