mirror of
https://github.com/facefusion/facefusion.git
synced 2026-07-30 22:07:23 +02:00
More RTC cleanup (#1115)
* reduce create_peer_connection like crazy * turns out that we dont event and callback/while+sleep magic for create_sdp_offer and negotiate_sdp_answer * test for audio/video to peers * flag rtc methods to be revised * fix lint
This commit is contained in:
@@ -132,7 +132,7 @@ def test_stream_video(test_client : TestClient, create_event : threading.Event,
|
||||
websocket.send_bytes(chr(1).encode() + source_content)
|
||||
websocket.receive_text()
|
||||
|
||||
peer_connection = rtc.create_peer_connection(disable_auto_negotiation = True)
|
||||
peer_connection = rtc.create_peer_connection()
|
||||
rtc.add_video_track(peer_connection, 'recvonly', 'vp8', 96)
|
||||
rtc.add_audio_track(peer_connection, 'recvonly', 'opus', 111)
|
||||
sdp_offer = rtc.create_sdp_offer(peer_connection)
|
||||
|
||||
Reference in New Issue
Block a user