@byomakase/omakase-player
    Preparing search index...

    Interface PlayerLiveState

    Runtime live state: the manifest-derived MediaLiveState plus the continuously-drifting liveSyncPosition (a playback/latency concern, not persisted on the media state).

    interface PlayerLiveState {
        duration: number;
        isLive: boolean;
        leadingSegmentDurations: number[];
        liveEdgeDuration: number;
        liveMode: LiveMode;
        liveStartTime: number;
        liveSyncPosition: number;
        manifestUpdatedTime: number;
        startSN: number;
        targetDuration: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    duration: number

    Duration of all segments (including evicted ones) up to the live sync point.

    isLive: boolean

    Whether the media source is currently a live stream.

    leadingSegmentDurations: number[]

    Durations of the segments at the front of the window, oldest first - the ones eviction consumes. Real durations rather than targetDuration, which a manifest is free not to honour.

    liveEdgeDuration: number

    Live edge — end of the last fragment/part in the playlist.

    liveMode: LiveMode

    Continuous (sliding window) or Event (start-over) live.

    liveStartTime: number

    Earliest seekable position — start of the first fragment still in the playlist.

    liveSyncPosition: number

    Safe live playback point (edge minus hold-back); the target for a "go to live" action.

    manifestUpdatedTime: number

    Wall-clock time (ms since epoch) of the last manifest reload; for stale-manifest detection.

    startSN: number

    Media sequence number of the first segment in the window; identifies content across instances.

    targetDuration: number

    Target segment duration; useful as seek headroom above liveStartTime.