W3C home > Mailing lists > Public > public-webrtc@w3.org > February 2016

RE: Issue 497: RID as read-only in setParameters()?

From: Bernard Aboba <Bernard.Aboba@microsoft.com>
Date: Thu, 11 Feb 2016 19:34:46 +0000
To: Jan-Ivar Bruaroey <jib@mozilla.com>, "public-webrtc@w3.org" <public-webrtc@w3.org>
Message-ID: <BLUPR03MB1493F690841F157704CAF40ECA80@BLUPR03MB149.namprd03.prod.outlook.com>
Jan-Ivar said:

So currently in Firefox Nightly, users can do this:

  var sender = pc.addTrack(stream.getVideoTracks()[0], stream);

  sender.setParameters({ encodings: [{ rid: "A",  maxBitrate: 300000 },

                                     { rid: "B",  maxBitrate: 100000 }] });

  pc.createOffer().then(d => pc1.setLocalDescription(d));

Works without having to use addTranceiver. Did we decide this should not work?

[BA] I believe this should still work because you are not *modifying* the RID value after an O/A exchange has completed, but rather are providing input on the values that should show up in the SDP resulting from createOffer().

Your example does however point out the need for clarity with respect to the meaning of "read only".
Received on Thursday, 11 February 2016 19:35:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:13 UTC