Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

seekTo

Code Block
seekTo(time:Number)

Seeks to a specified time in the video.

Parameters:

time - The time position (in seconds) in the video to jump to. 

Returns:

void

  

getDuration

 
Code Block
getDuration()
 

Returns the duration of the currently playing video in seconds.

 

Parameters:

 

None

 

Returns:

 

Number - The video duration in seconds.

 

getState

 

Code Block
getState()

 

Returns the video player's current play state.

 

Parameters:

 

None

 

Returns:

 

Number - The number representing the video playback state. (see video states).

 

getCurrentTime

 

Code Block
getCurrentTime()

 

Returns the lapsed time since the video start in seconds.

 

Parameters:

 

None

 

Returns:

 

Number - The lapsed video playback time in seconds.

 

loadVideo

 

Code Block
loadVideo(url:String)

 

Loads the video url specified by the url string. This does not auto play the video. The onMediaReady event would need to be monitored along with a subsequent video play() method call to cause the loaded video to play.

 

Parameters:

 

url - The url of the video to load.

Returns:

void

addEventListener

Code Block
addEventListener(event:String, callback:String)

Adds a listener function for the specified event. 

Parameters:

event - The event to register for listening. (See Player events)

callback - The event handler method of code block.

Returns:

void 

void

 

...

removeEventListener

 
Code Block

...

removeEventListener(event:String, callback:String)
 

...

Removes a listener function for the specified event.

 

Parameters:

 

None

event - The listening event. (See Player events)

callback - The event handler method or code block.

 

Returns:

 

void

 

...

Return Type

Player

...

Player States 

Player Video Class

Player initialization

...