W3C home > Mailing lists > Public > public-webrtc@w3.org > May 2017

[webrtc-pc] Invalid value for maxBitrate

From: jianjunz via GitHub <sysbot+gh@w3.org>
Date: Wed, 17 May 2017 14:22:41 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-229369849-1495030959-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:50 UTC