datachannel: Notify low buffered amount according to spec
authorPhilippe Normand <philn@igalia.com>
Wed, 18 May 2022 15:54:53 +0000 (16:54 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 19 May 2022 05:52:51 +0000 (05:52 +0000)
commit556ee45bfa0d60351b13df11edaba0d91960d121
treedb5812d3eece9fd96651e3009c964d3d659fe631
parentb6076d73949f291a077bfd80500512ac60c2b063
datachannel: Notify low buffered amount according to spec

Quoting
https://www.w3.org/TR/webrtc/#dom-rtcdatachannel-bufferedamountlowthreshold

The bufferedAmountLowThreshold attribute sets the threshold at which the
bufferedAmount is considered to be low. When the bufferedAmount decreases from
above this threshold to **equal** or below it, the bufferedamountlow event fires.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2448>
subprojects/gst-plugins-bad/ext/webrtc/webrtcdatachannel.c