Amazon Vinyl
    Preparing search index...

    Interface HlsMediaPlaylistData

    A media playlist with the URL its relative URIs resolve against.

    interface HlsMediaPlaylistData {
        baseUrl?: string;
        dateRanges: readonly HlsDateRange[];
        ended: boolean;
        mediaSequence: number;
        playlistType: HlsMediaPlaylistType;
        segments: readonly HlsSegment[];
        targetDuration: number;
        version: number;
    }

    Hierarchy (View Summary)

    Index
    baseUrl?: string

    The media playlist's URL after redirects, against which its segment, map, and date range URIs resolve. Guaranteed to be absolute when set.

    When absent, the variant URI resolved against HlsManifestData.baseUrl is used instead.

    dateRanges: readonly HlsDateRange[]

    The Date Ranges declared in this playlist (EXT-X-DATERANGE), in the order they appear. HLS Interstitials (SGAI ad breaks) are carried as Date Ranges whose classId is com.apple.hls.interstitial.

    ended: boolean

    Whether the playlist is complete, indicated by the presence of EXT-X-ENDLIST.

    mediaSequence: number

    The sequence number of the first segment in the playlist (EXT-X-MEDIA-SEQUENCE).

    playlistType: HlsMediaPlaylistType

    The mutability type of the playlist: VOD (static), EVENT (append-only), or LIVE (sliding window).

    segments: readonly HlsSegment[]

    The ordered list of media segments in this playlist.

    targetDuration: number

    The upper bound on the duration of any segment in the playlist, in seconds (EXT-X-TARGETDURATION).

    version: number

    The HLS protocol version required by this playlist (EXT-X-VERSION).