Represents a single period within an MPD, defining a specific portion of the content with its own set of adaptation sets and resources.

interface PeriodType {
    AdaptationSet?: readonly AdaptationSetType[];
    AssetIdentifier?: DescriptorType;
    BaseURL?: readonly BaseURLType[];
    EventStream?: readonly EventStreamType[];
    SegmentBase?: SegmentBaseType;
    SegmentList?: SegmentListType;
    SegmentTemplate?: SegmentTemplateType;
    Subset?: readonly SubsetType[];
    SupplementalProperty?: readonly DescriptorType[];
    actuate: actuateType;
    bitstreamSwitching: boolean;
    duration?: number;
    href?: string;
    id?: string;
    parent: MPDtype;
    start?: number;
}

Properties

AdaptationSet?: readonly AdaptationSetType[]

The adaptation sets within this period. Each adaptation set represents a group of interchangeable representations.

AssetIdentifier?: DescriptorType

An identifier for the content assets within this period.

BaseURL?: readonly BaseURLType[]

The base URL(s) for this period, which can be used to resolve relative URLs within this period.

EventStream?: readonly EventStreamType[]

Event streams associated with this period for signaling in-band events, such as SCTE-35 markers.

SegmentBase?: SegmentBaseType

Segment base information, specifying the default base URL and byte range for the media segments within this period.

SegmentList?: SegmentListType

A list of media segments available within this period, typically used for presentations without live-streaming.

SegmentTemplate?: SegmentTemplateType

Template information for generating media segment URLs within this period.

Subset?: readonly SubsetType[]

Subsets of adaptation sets, allowing for more complex grouping of representations.

SupplementalProperty?: readonly DescriptorType[]

Supplemental properties for this period, providing additional descriptors that may enhance the presentation or setup.

actuate: actuateType

Specifies the condition under which the related URL (defined by the href property) is actuated. May be 'onLoad' or 'onRequest'

bitstreamSwitching: boolean

Indicates whether bitstream switching is supported within the period. This allows seamless switches between different bitrates without needing a new initialization segment for the new bitrate stream.

duration?: number

The duration of the period, in seconds.

href?: string

A URL referencing additional information or an external adaptation set that should be considered part of this period.

id?: string

A unique identifier for this period.

parent: MPDtype

The parent MPD.

start?: number

The start time of this period, in seconds relative to the beginning of the presentation.