Reconstructs a minimal SDP from QWBP data (without candidates)
Candidates should be added separately via RTCPeerConnection.addIceCandidate() to avoid browser-specific SDP parsing issues with IPv6, mDNS, etc.
32-byte DTLS fingerprint
Whether this is an offer (true) or answer (false)
Optional
Optional pre-computed credentials (if not provided, will derive)
Reconstructed SDP string (without candidates)
const sdp = await reconstructSDP(remoteFingerprint, true);await pc.setRemoteDescription({ type: 'offer', sdp });// Then add candidates via addIceCandidate() Copy
const sdp = await reconstructSDP(remoteFingerprint, true);await pc.setRemoteDescription({ type: 'offer', sdp });// Then add candidates via addIceCandidate()
Reconstructs a minimal SDP from QWBP data (without candidates)
Candidates should be added separately via RTCPeerConnection.addIceCandidate() to avoid browser-specific SDP parsing issues with IPv6, mDNS, etc.