Skip to content

Function: getPeriodDuration() ​

ts
function getPeriodDuration(dash, index): number;

Defined in: mapper/dash/mapDashToHam/utils/getPeriodDuration.ts:39

Internal

Get the duration of a Period.

A Period without a duration attribute ends at the start of the next Period. The last Period ends at the mediaPresentationDuration of the MPD. A Period without a start attribute starts at the end of the previous Period. The first Period of a static MPD starts at 0. See ISO/IEC 23009-1 section 5.3.2.1.

Parameters ​

dash ​

DashManifest

Dash manifest that contains the Period

index ​

number

Index of the Period in the Dash manifest

Returns ​

number

Duration of the Period in seconds, or 0 if the duration is unknown

A Streaming Video Technology Alliance project.