Amazon Vinyl
    Preparing search index...

    Interface HlsSegment

    A media segment in an HLS Media Playlist (EXTINF).

    Each segment represents a contiguous chunk of media that can be fetched and decoded independently.

    interface HlsSegment {
        byteRange?: HlsByteRange;
        discontinuity: boolean;
        duration: number;
        key?: EncryptionKey;
        map?: HlsMap;
        programDateTime?: string;
        sequenceNumber: number;
        uri: string;
    }
    Index
    byteRange?: HlsByteRange

    A sub-range of the segment resource to fetch (EXT-X-BYTERANGE), if any.

    discontinuity: boolean

    Whether this segment begins a new discontinuity sequence (EXT-X-DISCONTINUITY).

    duration: number

    The duration of the segment in seconds (EXTINF).

    The encryption key applied to this segment (EXT-X-KEY), if any.

    map?: HlsMap

    The initialization segment (EXT-X-MAP) required to decode this segment, if any.

    programDateTime?: string

    An absolute date/time corresponding to the start of this segment (EXT-X-PROGRAM-DATE-TIME), if any.

    sequenceNumber: number

    The media sequence number of this segment, derived from EXT-X-MEDIA-SEQUENCE and segment position.

    uri: string

    The URI of the media segment resource.