Interface SidxSegmentReference

A single segment reference within a sidx box.

interface SidxSegmentReference {
    referenceType: number;
    referencedSize: number;
    sapDeltaTime: number;
    sapType: number;
    startsWithSap: boolean;
    subsegmentDuration: number;
}

Properties

referenceType: number

Indicates the reference type. A value of 0 means the reference is to a media segment. A value of 1 indicates the reference is to a hint track segment.

referencedSize: number

The size of the referenced segment in bytes.

sapDeltaTime: number

The SAP delta time specifies the difference in time (in the timescale of the 'sidx' box) between the earliest presentation time of the segment and the first SAP within it. This allows players to quickly locate the SAP for efficient playback startup or seeking.

sapType: number

The SAP type indicates the type of stream access point that starts the segment. This is a 3-bit field. The SAP types are defined in ISO/IEC 14496-12, and they describe the characteristics of the stream access points.

startsWithSap: boolean

Indicates if the segment starts with a SAP (Stream Access Point). If true, the segment starts with a SAP, facilitating random access and efficient streaming.

subsegmentDuration: number

The duration of the subsegment. This is expressed in the timescale provided in the 'sidx' box.