[webrtc-pc] Validation of reordered readonly parameters in setParameters

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

== Validation of reordered readonly parameters in setParameters ==
Step 7 of setParameters says:

> If parameters.encodings.length is different from N, or if any parameter in the parameters argument, marked as a Read-only parameter, has a value that is different from the corresponding parameter value returned from sender.getParameters(), abort these steps and return a promise rejected with a newly created InvalidModificationError. Note that this also applies to transactionId.

And the description for `codec` field for `RTCRtpParameters` says:

> When using the setParameters method, the codecs sequence from the corresponding call to getParameters can be reordered and entries can be removed, but entries cannot be added, and the RTCRtpCodecParameters dictionary members cannot be modified.

This seems to require step 7 to handle reordering/dropping of readonly parameters as well, but it is a bit ambiguous in step 7 whether reordering/dropping is allowed. Even if it allows, does this mean that `encodings` elements can be reordered, and `headerExtensions` elements can be reordered/dropped as well?

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

Received on Monday, 17 July 2017 08:43:51 UTC