meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.17k stars 2.47k forks source link

audiobridge: cleanup participant's queue and jitter buffer when muted… #3368

Closed atoppi closed 3 weeks ago

atoppi commented 4 months ago

… property changes or the whole room is muted

This patch will cleanup participant's buffers (both the encoder queue and jitter buffer) when the muted status changes, the whole room muted status is changed through the mute_room API or the user changes room with the changeroom API. The rationale is to avoid having spurious packets in the buffers when users get unmuted.