Start video
Begin playing the video (optionally: at the second given).
Parameter | Description |
---|---|
time | default = null optional: The time in seconds that the video should begin playing. |
Pause video
Pauses a played-out video; no effect if the player is already paused.
Stop video
Stops a played-out video; no effect if the player is already stopped.
Set volume
Adjusts volume level in the scale values from 0.0, 0.1, 0.2, ... 1.
Player.setVolume(volume)
Mute
Toggles the audio on or off.
Jump forward
Jump forward by milliseconds given.
Parameter | Description |
---|---|
millis | Interval in milliseconds. |
Rewind
Reverse the video by milliseconds given.
Parameter | Description |
---|---|
millis | Interval in milliseconds. |
Get current time
The current playing time in seconds will be returned.
Get video length
Returns the video length of the current video.
Get buffered time of video
Returns how far the video has been already buffered.
Set play head at given time
Sets the play head at the given time in seconds.
Get video title
Returns the title of the current video.
Player.getApi('metaData').getVideoTitle()