supervision-js
    Preparing search index...

    Interface MediaSourceState

    Snapshot of the opened media source.

    interface MediaSourceState {
        status: MediaSourceStatus;
        awaitingRead?: boolean;
        canRead: boolean | null;
        formatName: string | null;
        formatMimeType: string | null;
        mimeType: string | null;
        duration: number | null;
        firstTimestamp: number | null;
        estimatedFrameRate: number | null;
        estimatedFrameCount: number | null;
        trackCount: number | null;
        videoTrackCount: number | null;
        audioTrackCount: number | null;
        primaryVideoWidth: number | null;
        primaryVideoHeight: number | null;
        errorMessage: string | null;
        errorKind?: MediaErrorKind | null;
    }
    Index
    awaitingRead?: boolean

    True while the renderer is waiting on a read it cannot draw without. Prefetch that runs behind a moving picture is not a wait and leaves this false, so this is set only where the picture has stopped for the source.

    canRead: boolean | null
    formatName: string | null
    formatMimeType: string | null
    mimeType: string | null
    duration: number | null
    firstTimestamp: number | null

    First playable presentation timestamp, when the source is ready.

    estimatedFrameRate: number | null

    Average video packet rate sampled while opening finite media.

    estimatedFrameCount: number | null

    Display estimate derived from duration and estimatedFrameRate.

    trackCount: number | null
    videoTrackCount: number | null
    audioTrackCount: number | null
    primaryVideoWidth: number | null
    primaryVideoHeight: number | null
    errorMessage: string | null
    errorKind?: MediaErrorKind | null

    Stable failure classification when status is Error, otherwise null.

    Prefer this over errorMessage for control flow. Messages are diagnostic text and may name vendor internals.