[webrtc-pc] sendEncodings in "create an RTPSender" should reflect platform capabilities

alvestrand has just created a new issue for https://github.com/w3c/webrtc-pc:

== sendEncodings in "create an RTPSender" should reflect platform capabilities ==
At the moment, the "create an RTPSender" steps says:

If sendEncodings is given as input to this algorithm, and is non-empty, set the [[SendEncodings]] slot to sendEncodings.
Otherwise, set it to a list containing a single RTCRtpEncodingParameters with active set to true.

This does not inform about the ability of the sender to accept multiple encoding layers.

Suggested replacement:

Initialize the [[SendEncodings]] slot to a list of RTCRtpEncodingParameters with "active" set to false. The length of the list reflects the UA's ability to send simulcast encodings.
If sendEncodings is given as input to this algorithm, copy the content of the sendEncodings into the first slots of the [[SendEncodings]] array. If sendEncodings is longer than [[SendEncodings]], discard the last values of sendEncodings.
If sendEncodings is not given, set "active" of the first element in [[SendEncodings]] to true.


Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1872 using your GitHub account

Received on Wednesday, 16 May 2018 10:07:21 UTC