Amazon Vinyl
    Preparing search index...

    Interface HlsMediaPlaylist

    A parsed HLS Media Playlist as defined by RFC 8216.

    A Media Playlist contains a list of media segments that, when played sequentially, form a continuous stream.

    interface HlsMediaPlaylist {
        dateRanges: readonly HlsDateRange[];
        ended: boolean;
        mediaSequence: number;
        playlistType: HlsMediaPlaylistType;
        segments: readonly HlsSegment[];
        targetDuration: number;
        version: number;
    }
    Index
    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).