Closed Bug 1449272 Opened 8 years ago Closed 8 years ago

offerToReceiveAudio and offerToReceiveVideo create m-sections in reverse order

Categories

(Core :: WebRTC: Signaling, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: drno, Assigned: bwc)

Details

Attachments

(2 files)

Since Fx 59 if pc.createOffer({ offerToReceiveAudio: true, offerToReceiveVideo: true }) gets called you get an SDP with the video m-section coming first and the audio m-section being second. This probably comes as a surprise for some services out there and can not be explained with the API calling addTrack or addTranceiver in the wrong order.
Rank: 17
Priority: -- → P2
Assignee: nobody → docfaraday
Comment on attachment 8963277 [details] Bug 1449272 - Part 1: Update test-case to expect the audio transceiver first when using both offerToReceiveAudio and offerToReceiveVideo. https://reviewboard.mozilla.org/r/232172/#review240386 Lgtm if we lose the comment. ::: dom/media/tests/mochitest/test_peerConnection_transceivers.html:407 (Diff revision 1) > - if (options.offerToReceiveAudio) { > + // NOTE: The ordering here is not laid out in the spec at all, this is > + // firefox specific. We should remove this comment. I believe the spec covers this on account of [1]: "For each 'offerToReceive<Kind>' member in options with kind" and [2] "dictionary members ... are ordered lexicographically by the Unicode codepoints that comprise their identifiers" [1] http://w3c.github.io/webrtc-pc/#legacy-configuration-extensions [2] https://heycam.github.io/webidl/#idl-dictionaries
Attachment #8963277 - Flags: review?(jib) → review+
Comment on attachment 8963278 [details] Bug 1449272 - Part 2: When using both offerToReceiveAudio and offerToReceiveVideo, create the audio transceiver first. https://reviewboard.mozilla.org/r/232174/#review240388 Lgtm.
Attachment #8963278 - Flags: review?(jib) → review+
Pushed by bcampen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/22dad8af6e63 Part 1: Update test-case to expect the audio transceiver first when using both offerToReceiveAudio and offerToReceiveVideo. r=jib https://hg.mozilla.org/integration/autoland/rev/2dcd83b1d5d3 Part 2: When using both offerToReceiveAudio and offerToReceiveVideo, create the audio transceiver first. r=jib
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: