[webrtc-pc] Invalid value for maxBitrate

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

== Invalid value for maxBitrate ==
In an `RTCRtpParameters` object, if `RTCRtpEncodingParameters.maxBitrate` is below one of `codec`'s valid range. What's the expected result when `setParameters` is called with such an `RTCRtpParameters`? Maybe we need to add some description for this case.

For example, the valid bitrate range for Opus is 6 kbit/s to 510 kbit/s. What happens if `RTCRtpEncodingParameters.maxBitrate` is set to 5 kbit/s.

IMHO, possible solutions could be
- Silently remove the codec that only works above `RTCRtpEncodingParameters.maxBitrate`
- Return a promise rejected with a newly created `RangeError`

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

Received on Wednesday, 17 May 2017 14:22:47 UTC