Vinyl
    Preparing search index...

    Interface SegmentTemplateType

    Extends MultipleSegmentBaseType with template properties for generating segment URLs.

    interface SegmentTemplateType {
        availabilityTimeComplete?: boolean;
        availabilityTimeOffset?: number;
        bitstreamSwitching?: string;
        BitstreamSwitching?: URLType;
        duration?: number;
        index?: string;
        indexRange?: ByteRange;
        indexRangeExact: boolean;
        initialization?: string;
        Initialization?: URLType;
        media?: string;
        presentationTimeOffset?: number;
        RepresentationIndex?: URLType;
        SegmentTimeline?: SegmentTimelineType;
        startNumber?: number;
        timescale?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    availabilityTimeComplete?: boolean

    Indicates whether the availability time for the segment is complete.

    availabilityTimeOffset?: number

    Specifies a time offset, in seconds, from the availability start time of the content.

    bitstreamSwitching?: string

    A template for bitstream switching segment URLs, if bitstream switching is supported.

    BitstreamSwitching?: URLType

    An optional URL pointing to a bitstream switching segment. This segment contains data that enables the decoder to seamlessly switch between different bitrates or representations without the need for a full reinitialization. Using this property can significantly improve the user experience in adaptive streaming scenarios by reducing the latency and buffering times associated with bitrate switches.

    duration?: number

    The duration of each segment within the sequence, specified in the timescale units.

    index?: string

    A template for generating segment index URLs.

    indexRange?: ByteRange

    Specifies the byte range for the segment index within the media file, if applicable.

    indexRangeExact: boolean

    Indicates whether the indexRange is exact, providing precise byte range information for segment indexing.

    initialization?: string

    A template for generating initialization segment URLs.

    Initialization?: URLType

    The URL to the initialization segment required for decoding the media segments.

    media?: string

    A template for generating media segment URLs.

    presentationTimeOffset?: number

    Specifies a presentation time offset in the media timeline relative to the start of the Period, in timescale units, used to adjust the timing of media presentation.

    RepresentationIndex?: URLType

    The URL to the segment index providing information about segment locations within the media stream.

    SegmentTimeline?: SegmentTimelineType

    An optional SegmentTimeline that provides a detailed breakdown of the segments' timing and duration within the content.

    startNumber?: number

    The number of the first segment in the sequence.

    timescale?: number

    The timescale in units per second used for timing properties within the segment.