Class: shaka.media.RegionTimeline

Constructor

new RegionTimeline(getSeekRangenon-null)

Parameters:
Name Type Description
getSeekRange function
Implements:
Source:

Members

REGION_FILTER_INTERVAL :number

Type:
  • number
Source:

filterTimer_ :shaka.util.Timer

Make sure all of the regions we're tracking are within the seek range or further in the future. We don't want to store regions that fall before the start of the seek range.
Type:
Source:

getSeekRange_ :!function():{start: number, end: number}

Type:
  • !function():{start: number, end: number}
Source:

regions_ :Map.<string, T>

Type:
  • Map.<string, T>
Source:

Methods

addRegion(region)

Parameters:
Name Type Description
region T
Source:

filterBySeekRange_()

Source:

generateKey_(region) → {string}

Parameters:
Name Type Description
region T
Source:
Returns:
Type
string

regions() → {Iterable.<T>}

Get an iterable for all the regions in the timeline. This will allow others to see what regions are in the timeline while not being able to change the collection.
Source:
Returns:
Type
Iterable.<T>

release()

Request that this object release all internal references.
Implements:
Source:

releaseTimer_()

Source:

setupTimer_()

Source: