from __future__ import annotations

from core.state_machine import Arbitrator
from services.avatar import AvatarService
from webrtc.tracks import AudioBus, AvatarVideoTrack

__all__ = ["AvatarVideoTrack", "build_video_track"]


def build_video_track(
    avatar_service: AvatarService,
    arbitrator: Arbitrator,
    audio_bus: AudioBus,
    fps: int = 25,
) -> AvatarVideoTrack:
    return AvatarVideoTrack(
        avatar_service=avatar_service,
        arbitrator=arbitrator,
        audio_bus=audio_bus,
        fps=fps,
    )
