Start video
Begin playing the video (optionally: at the second given).
Parameter | Data Type | Description |
---|---|---|
time | integer | 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 | Data Type | Description |
---|---|---|
millis | integer | Interval in milliseconds. |
Rewind
Reverse the video by milliseconds given.
Parameter | Data Type | Description |
---|---|---|
millis | integer | 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.
Get video title
Returns the title of the current video.
Player.getApi('metaData').getVideoTitle()
Switch player sources
Load a video specified by ID.
Player.switchVideo(videoId)
Parameter | Data Type | Description |
---|---|---|
videoId | string | ID of the video to be loaded. |