Interface MultipleSegmentBaseType

Extends SegmentBaseType to support scenarios involving multiple segments within a media presentation, such as adaptive streaming. This type incorporates properties that describe the overall structure and sequencing of the segments, providing essential information for efficient content delivery and playback.

interface MultipleSegmentBaseType {
    BitstreamSwitching?: URLType;
    Initialization?: URLType;
    RepresentationIndex?: URLType;
    SegmentTimeline?: SegmentTimelineType;
    availabilityTimeComplete?: boolean;
    availabilityTimeOffset?: number;
    duration?: number;
    indexRange?: ByteRange;
    indexRangeExact: boolean;
    presentationTimeOffset?: number;
    startNumber?: number;
    timescale?: number;
}

Hierarchy (view full)

Properties

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.

Initialization?: URLType

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

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.

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.

duration?: number

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

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.

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.

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.