Class: shaka.media.SrcEqualsPlayhead

Constructor

new SrcEqualsPlayhead(mediaElementnon-null)

Parameters:
Name Type Description
mediaElement HTMLMediaElement
Implements:
Source:

Members

started_ :boolean

Type:
  • boolean
Source:

startTime_ :number

Type:
  • number
Source:

Methods

getTime() → {number}

Get the current playhead position. The position will be restricted to valid time ranges.
Implements:
Source:
Returns:
Type
number

notifyOfBufferingChange()

Notify the playhead that the buffered ranges have changed.
Implements:
Source:

release()

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

setStartTime(startTime)

Set the start time. If the content has already started playback, this will be ignored.
Parameters:
Name Type Description
startTime number
Implements:
Source: