Member Junction
    Preparing search index...

    A single frame of media on a bridge track.

    Frames are intentionally minimal and serializable. The payload is carried EITHER as raw binary (Bytes, the fast in-process path used by server-bridged drivers) OR as a base64 string (Base64, for transports that can only move text) — a frame should populate exactly one. Keeping the payload representation explicit avoids guessing and keeps the type free of any.

    interface BridgeMediaFrame {
        Base64?: string;
        Bytes?: ArrayBuffer;
        SpeakerLabel?: string;
        TimestampMs?: number;
        Track: BridgeMediaTrackKind;
    }
    Index

    Properties

    Base64?: string

    Frame payload as a base64-encoded string. Used by transports that can only carry text. Mutually exclusive with BridgeMediaFrame.Bytes; populate one.

    Bytes?: ArrayBuffer

    Raw frame payload as binary. Preferred for in-process server-bridged drivers — no intermediate encoding. Mutually exclusive with BridgeMediaFrame.Base64; populate one.

    SpeakerLabel?: string

    Optional per-speaker label for diarized inbound media (requires the provider's SpeakerDiarization feature). Lets turn-taking attribute speech to a named participant. Typically the participant's ExternalId or display name.

    TimestampMs?: number

    Optional epoch-millisecond capture timestamp for the frame, used for ordering, latency accounting, and silence-window calculations in the turn-taking policy. When omitted the consumer may stamp arrival time.

    Which track this frame belongs to (kind + direction).