stripSDP: filter a=max-message-size and fix line-endings for cross-browser compat
All checks were successful
Pin to IPFS / pin (push) Successful in 13s
All checks were successful
Pin to IPFS / pin (push) Successful in 13s
This commit is contained in:
parent
7266cdcc0e
commit
b51169b545
1 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,8 @@ function hexToBuf(hex) {
|
|||
/* ─── QR compression: deflate-raw + base45 ─── */
|
||||
|
||||
function stripSDP(sdp) {
|
||||
return sdp.split('\r\n').map(line => {
|
||||
return sdp.split(/\r?\n/).map(line => {
|
||||
if (line === '' || line.startsWith('a=max-message-size:')) return null;
|
||||
if (!line.startsWith('a=candidate:')) return line;
|
||||
const parts = line.split(' ');
|
||||
if (parts[2] === 'tcp') return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue