Class: shaka.util.Periods

Constructor

new Periods()

Source:

Methods

(static) findPeriodForTime(periodsnon-null, timeInSeconds) → (nullable) {shaka.extern.Period}

Find our best guess at which period contains the given time. If |timeInSeconds| starts before the first period, then |null| will be returned.
Parameters:
Name Type Description
periods Iterable.<shaka.extern.Period>
timeInSeconds number
Source:
Returns:
Type
shaka.extern.Period

(static) getAllVariantsFrom(periodsnon-null) → (non-null) {Array.<shaka.extern.Variant>}

Get all the variants across all periods.
Parameters:
Name Type Description
periods Iterable.<shaka.extern.Period>
Source:
Returns:
Type
Array.<shaka.extern.Variant>