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

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