Page tree

Versions Compared

Key

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

...

MethodReturn TypeDescription
play()VoidPlays the currently loaded video.
pause()VoidPauses the currently playing video.
seekTo(time:Number)VoidSeeks to a specified time in the video (in seconds).
getDuration()NumberReturns the duration of the currently playing video (in seconds).
getState()NumberReturns video players current state.
getCurrentTime()NumberReturns the elapsed time since the video start (in seconds).
loadVideo(video:String)VoidLoads video url specified by video string.
addEventListener(eventTypeevent:String, callback:String)VoidAdds a listener function for the specified eventType event (see: Player events).
removeEventListener(eventTypeevent:String, callback:StringVoidRemoves a listener function for the specified eventType event.