pion / interceptor

Pluggable RTP/RTCP processors for building real time communication
https://pion.ly/
MIT License
109 stars 55 forks source link

Keep only 500ms buffer items for leaky pacer #227

Closed alexpokotilo closed 8 months ago

alexpokotilo commented 8 months ago

Don't allow LeakyBucketPacer to grow forever in case if client produces more bitrate than BWE proposed

Description

Current implementation of leaky pacer expects client to strictly honor bitrate proposed by BWE. But what if client reacts slowly or has an issue in bitrate logic. Leaky pacer show keep 500ms of items and drop older items.

Reference issue

Fixes #...

alexpokotilo commented 8 months ago

@mengelbart please review

alexpokotilo commented 8 months ago

Will proceed work on my branch. Let me know if somebody is interested