You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 above or equal to buffered_amount should trigger the event, if bufferedAmountLowThreshold was below 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.
The text was updated successfully, but these errors were encountered:
Let me rephrase the core issue in my own words: "When bufferedAmountLowThreshold is being lowered, a check needs to be made whether the bufferedamountlow event needs to fire." Is that correct or is there more to it?
That would be a valid point. Then again, I think it's an ultra corner case and I doubt anyone ever ran into that. Still, correctness is key. 👍
Today the spec says:
Also:
It is reasonable to assume that also changing the
bufferedAmountLowThreshold
to a value that is above or equal tobuffered_amount
should trigger the event, ifbufferedAmountLowThreshold
was belowbuffered_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.The text was updated successfully, but these errors were encountered: