Member Junction
    Preparing search index...
    interface VideoPlayoutOptions {
        BackBufferSeconds?: number;
        CarriesVoice?: boolean;
        Clock?: IPlaybackClock;
        MimeType?: string;
        OnElementAttached?: (element: HTMLVideoElement) => void;
    }
    Index

    Properties

    BackBufferSeconds?: number

    Seconds of played media to keep behind the playhead. Defaults to 10.

    CarriesVoice?: boolean

    Whether the element plays the media's audio. Defaults to true: an avatar's MP4 carries its voice. false mutes the element, for a voice that plays elsewhere. VideoPlayout.CarriesVoice changes it later.

    The voice's playback clock, for lip sync: the chunk and image decoders show each frame when the voice reaches its PresentationTimeMs. Give it when the driver times its PCM (IRealtimePcmPlayback.Enqueue(pcm16, mediaTimeMs)) and its frames on one media timeline; RealtimePcmPlayback is such a clock. Without it, frames go by their own times. MSE ignores it.

    MimeType?: string

    The type, with codecs, the player expects: the decoder for it starts when an element is attached, before any frame arrives, and the MSE source buffer opens with it until an init segment names its own codecs (or names one the reader doesn't know). Defaults to GEMINI_AVATAR_MP4_TYPE.

    OnElementAttached?: (element: HTMLVideoElement) => void

    Called with each element the player takes over, before playback starts, such as to route the element's audio into a Web Audio graph. A player that moves to another element calls it again with that one.