Interface SegmentBaseType

Defines base properties for a segment within a media presentation, which are applicable to single segments.

interface SegmentBaseType {
    Initialization?: URLType;
    RepresentationIndex?: URLType;
    availabilityTimeComplete?: boolean;
    availabilityTimeOffset?: number;
    indexRange?: ByteRange;
    indexRangeExact: boolean;
    presentationTimeOffset?: number;
    timescale?: number;
}

Hierarchy (view full)

Properties

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.

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.

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.

timescale?: number

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