mirror of
https://github.com/facefusion/facefusion.git
synced 2026-06-02 19:01:35 +02:00
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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user