[webrtc-pc] RTCDataChannel::onbuffereamountlow should trigger when threshold goes below buffered_amount (#2654)

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

== RTCDataChannel::onbuffereamountlow should trigger when threshold goes below buffered_amount ==
Today the spec says:


> bufferedAmountLowThreshold of type unsigned long  ...  When the bufferedAmount decreases from above this threshold to equal or below it, the bufferedamountlow event fires ...

Also:

>[bufferamountlow] [Fired when...] The RTCDataChannel object's bufferedAmount decreases from above its bufferedAmountLowThreshold to less than or equal to its bufferedAmountLowThreshold.


It is reasonable to assume that also changing the `bufferedAmountLowThreshold` to a value that is below or equal to  `buffered_amount` should trigger the event, if `bufferedAmountLowThreshold` was above `buffered_amount` before the change, as it would be the same transition.

With the current wording, the event will only be triggered when and only when the `buffered_amount` value decreases.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 27 May 2021 10:51:44 UTC