getDuration()

The total length of the media file. This varies depending on VOD or live content. See the table below for more information.

Media TypeDescriptionType
VODThe length of a loaded VOD file, in secondsNumber
LiveLive streams will always return a duration of infinityNumber
DVRThe total amount of buffer in the DVR stream, in secondsNumber