Class: shaka.media.StallDetector.MediaElementImplementation

Constructor

new MediaElementImplementation(mediaElementnon-null)

Parameters:
Name Type Description
mediaElement HTMLMediaElement
Implements:
Source:

Members

Methods

hasContentFor_(bufferednon-null, timeInSeconds) → {boolean}

Check if we have buffered enough content to play at |timeInSeconds|. Ignore the end of the buffered range since it may not play any more on all platforms.
Parameters:
Name Type Description
buffered TimeRanges
timeInSeconds number
Source:
Returns:
Type
boolean

getPresentationSeconds() → {number}

Get the presentation time in seconds.
Implements:
Source:
Returns:
Type
number

getWallSeconds() → {number}

Get the time wall time in seconds.
Implements:
Source:
Returns:
Type
number

shouldBeMakingProgress() → {boolean}

Check if the presentation time should be changing. This will return |true| when we expect the presentation time to change.
Implements:
Source:
Returns:
Type
boolean