André:
The SDP you indicate has only ~5,300 bytes in it, which is much less
than can fit in a 64k byte buffer.
The problem you're running into actually happens much earlier than that:
we use DOMString to pass our SDP from the javascript down to the C code,
and Firefox appears to currently restrict DOMString to 4k in length.
I have opened Bug 922245 to track this issue. Thanks for bringing this
to our attention.
https://bugzilla.mozilla.org/show_bug.cgi?id=922245
/a
On 9/30/13 12:59, André Silva wrote:
Hi all,
I'm creating an application that uses SIP as signalling protocol, so I need to
wait for the ICE candidates list to be completed to send it to the other
client. I am using 2 TURN servers and 1 STUN server, and it has been proven
that all of them are needed to work in all networks that I need.
The problem is that Chrome creates an SDP with all the candidates and the
result is a big SDP that can be found here http://d.pr/n/RM17
Between Chrome's everything works great with these big SDPs, but when Firefox
receives a big SDP like this, an exception is thrown with this message:
Could not negotiate answer SDP; cause = ERR
SDP Parsing Error: End of line beyond end of buffer.
After some search I found the function sdp_parse where this fails, and it seems
that the SDP does not fit in the created buffer.
Also it seems like Firefox SDP parser is limited to a 16bits uint length.
http://people.mozilla.org/~choller/firefox/coverage/mc-coverage-20121101-482d32e2b348/media/webrtc/signaling/src/sipcc/core/sdp/sdp_main.c.gcov.html#894
If I define only the STUN server, the SDP is smaller(with less candidates) and
it works with Firefox.
Who's wrong? Does the SDP's have a limit defined in some RFC or is it just an
assumption made by Firefox that the SDP will never reach this size?
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media
--
Adam Roach
Principal Platform Engineer
[email protected]
+1 650 903 0800 x863
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media