Class: shaka.media.ActiveStreamMap

Constructor

new ActiveStreamMap()

Source:

Classes

Frame

Members

(private, non-null) history_ :Map.<shaka.extern.Period, !shaka.media.ActiveStreamMap.Frame>

A mapping between a period and the content last streamed in that period.
Type:
Source:

Methods

clear()

Clear the history.
Source:

(private) getFrameFor_(period) → (non-null) {shaka.media.ActiveStreamMap.Frame}

Get the frame for a period. This will ensure that a frame exists for the given period.
Parameters:
Name Type Description
period shaka.extern.Period
Source:
Returns:
Type
shaka.media.ActiveStreamMap.Frame

getText(period) → (nullable) {shaka.extern.Stream}

Get the text stream that was playing in the given period. If no text stream was playing this period or the period had not started playing, then |null| will be returned.
Parameters:
Name Type Description
period shaka.extern.Period
Source:
Returns:
Type
shaka.extern.Stream

getVariant(period) → (nullable) {shaka.extern.Variant}

Get the variant that was playing in the given period. If no variant was playing this period or the period had not started playing, then |null| will be returned.
Parameters:
Name Type Description
period shaka.extern.Period
Source:
Returns:
Type
shaka.extern.Variant

useText(period, streamnullable)

Set the text stream that was last displayed in |period|. Setting it to |null| is the same as saying "we were displaying no text in this period".
Parameters:
Name Type Attributes Description
period shaka.extern.Period
stream shaka.extern.Stream <nullable>
Source:

useVariant(period, variantnullable)

Set the variant that was last playing in |period|. Setting it to |null| is the same as saying "we were playing no variant in this period".
Parameters:
Name Type Attributes Description
period shaka.extern.Period
variant shaka.extern.Variant <nullable>
Source: