Class: shaka.media.StallDetector.MediaElementImplementation

Constructor

new MediaElementImplementation(mediaElementnon-null)

Parameters:
Name Type Description
mediaElement HTMLMediaElement
Implements:
Source:

Members

audioEventManager_ :shaka.util.EventManager

For listeners scoped to the lifetime of the instance.
Type:
Source:

audioFocusPaused_ :boolean

Audio focus state
Type:
  • boolean
Source:

Methods

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

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

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