from app.audio.endpoints.input.base import AudioInputEndpoint
from app.schemas import AudioChunk, EndpointCapabilities

class MobileWebRTCInput(AudioInputEndpoint):
    endpoint_id = "mobile-webrtc-client"

    async def capabilities(self) -> EndpointCapabilities:
        return EndpointCapabilities(
            id=self.endpoint_id,
            kind="mobile-webrtc",
            direction="input",
            latency_class="low",
            networked=True,
            mobile=True,
            supports_barge_in=True,
        )

    async def open(self) -> None:
        return None

    async def read_chunk(self) -> AudioChunk:
        return AudioChunk(data=b"", format="wav", timestamp_ms=0)

    async def close(self) -> None:
        return None
