]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
Fix FS-11873: addStream() adds audio/video tracks in random order
authorChad Phillips <chad@apartmentlines.com>
Fri, 31 May 2019 17:52:18 +0000 (10:52 -0700)
committerChad Phillips <chad@apartmentlines.com>
Fri, 31 May 2019 17:52:18 +0000 (10:52 -0700)
commitf1bc56d65b44f1d97e1e9c690175fa8757e42c29
treea0977d30f99d664462704fb97c25e16d39a6f274
parentcea52ac25592c15815ccf4e32737c0c8b343b02f
Fix FS-11873: addStream() adds audio/video tracks in random order

addStream() is a deprecated WebRTC API method, and only works via shimming on some platforms. Internally, it is inconsistent in building an offer SDP in the order which FreeSWITCH expects it, which is audio m-lines first.

This can result in intermittent m-line ordering errors on the client.

Instead addTrack() can be used to force the media tracks to be added to the peer in the order FreeSWITCH expects.
html5/verto/js/src/jquery.FSRTC.js