Re: [webrtc-pc] setParameters: check for number of encodings

The spec is how we agreed to write it - number of layers can only be changed from the default in AddTransceiver.

What I think you are suggesting (and I think it makes some sense) is to let the [[SendEncodings]] length initially be "undefined", that any subsequent modification with setParameters is allowed to change the [[SendEncodings]] length as long as it is "undefined", and that negotiation (SLD/SRD) sets the length of [[SendEncodings]] to 1 if it isn't otherwise set.

But the example given SHOULD return IllegalModificationError much earlier, because it violates step 5:

If sender's [[LastReturnedParameters]] internal slot is null, return a promise rejected with a newly created InvalidStateError.

-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2016#issuecomment-433828491 using your GitHub account

Received on Monday, 29 October 2018 08:40:01 UTC