move datachannel to libraries and follow datachannel conventions (#1090)

* move datachannel to libraries and follow new datachannel_module convention

* move datachannel to libraries and follow new datachannel_module convention
This commit is contained in:
Henry Ruhs
2026-05-09 09:48:40 +02:00
committed by henryruhs
parent a8db033033
commit 97e0df01b1
5 changed files with 36 additions and 35 deletions
+2 -1
View File
@@ -6,11 +6,12 @@ from typing import Optional
from starlette.testclient import TestClient
from facefusion import rtc
from facefusion.libraries import datachannel as datachannel_module
from facefusion.types import SdpOffer
def create_sdp_offer() -> Optional[SdpOffer]:
datachannel_library = rtc.create_static_datachannel_library()
datachannel_library = datachannel_module.create_static_library()
peer_connection = rtc.create_peer_connection(disable_auto_negotiation = True)
datachannel_library.rtcAddTrack(peer_connection, rtc.build_media_description('video', 96, 'VP8/90000', 'recvonly', 0))