Implement tier 1 REMB (#1129)

* implement tier 1

* fix lint

* cleanup

* cleanup

* fix lint

* use clear_remb method

* use single callback

* improve test

* improve test

* improve test

* improve test

* improve test
This commit is contained in:
Harisreedhar
2026-05-29 19:00:27 +05:30
committed by GitHub
parent cc0af9175a
commit 2a8672b54d
7 changed files with 117 additions and 19 deletions
+9
View File
@@ -1,3 +1,4 @@
import ctypes
import tempfile
from typing import Iterator
from unittest.mock import patch
@@ -135,6 +136,14 @@ def test_stream_video(test_client : TestClient, video_codec : VideoCodec) -> Non
assert stream_response.status_code == 201
assert 'm=video' in stream_response.text
session_id = session_manager.find_session_id(access_token)
for peer in rtc_store.get_peers(session_id):
bitrate = peer.get('bitrate')
assert bitrate.value == 0
rtc.handle_remb(0, 6000000, ctypes.addressof(bitrate))
assert bitrate.value == 6000
def test_delete_stream_video(test_client : TestClient) -> None:
create_session_response = test_client.post('/session', json =