Files
product/webrtc/gateway.py
T
2026-03-27 17:10:41 +08:00

25 lines
607 B
Python

from __future__ import annotations
from aiortc import RTCPeerConnection
from fastapi import FastAPI
from webrtc.audio_track import build_audio_track
from webrtc.tracks import AudioBus
def attach_webrtc_tracks(
pc: RTCPeerConnection,
avatar_service,
arbitrator,
audio_bus: AudioBus,
) -> None:
_ = avatar_service
_ = arbitrator
pc.addTrack(build_audio_track(audio_bus))
def register_gateway_routes(app: FastAPI) -> None:
# Gateway endpoints are currently implemented in `main.py`.
# This function exists to keep project structure aligned with task list.
_ = app