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

    Interface MediaLiveState

    Live details for a MainMedia whose source is a live stream.

    liveStartTime/liveEdgeDuration describe the currently seekable window and slide forward as the manifest is reloaded (segments dropped from the front, appended at the edge). They mirror the range hls.js would hand to MediaSource.setLiveSeekableRange, derived from the playlist. All values are in the media element timeline (comparable to currentTime).

    interface MediaLiveState {
        duration: number;
        leadingSegmentDurations: number[];
        liveEdgeDuration: number;
        liveMode: LiveMode;
        liveStartTime: 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.

    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.

    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.