Versions Compared

Key

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

Start video

 Begin playing the video (optionally: at the second given).

Panel
bgColor#DCDCDC
languagejs
themeConfluence
languagejs
borderStylenone
Player.play(time)


ParameterData TypeDescription
timeinteger

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.

Panel
bgColor#DCDCDC
languagejs
themeConfluence
languagejs
borderStylenone
Player.pause()
 


Stop video

Stops a played-out video; no effect if the player is already stopped.

Panel
bgColor#DCDCDC
languagejs
themeConfluence
languagejs
borderStylenone
Player.stop()

 


Set volume

Adjusts volume level in the scale values from 0.0, 0.1, 0.2, ... 1.

Panel
bgColor#DCDCDC
languagejs
themeConfluencelanguagejs
borderStylenone

Player.setVolume(volume)


Mute

Toggles the audio on or off.

Panel
bgColor#DCDCDC
languagejs
themeConfluencelanguagejs
borderStylenone
Player.toggleMute()
 


Jump forward

Jump forward by milliseconds given.

Panel
language
bgColor#DCDCDC
languagejs
themeConfluence
jsborderStylenone
Player.forward(millis)
ParameterData TypeDescription
millisinteger

Interval in milliseconds.

 


Rewind

Reverse the video by milliseconds given.

Panel
language
bgColor#DCDCDC
languagejs
themeConfluence
jsborderStylenone
Player.rewind(millis)
ParameterData TypeDescription
millisinteger

Interval in milliseconds.

 


Get current time

The current playing time in seconds will be returned.

Panel
language
bgColor#DCDCDC
languagejs
themeConfluence
jsborderStylenone
Player.getCurrentTime()


Get video length

Returns the video length of the current video.

Panel
language
bgColor#DCDCDC
languagejs
themeConfluence
jsborderStylenone
Player.getDuration()


Get buffered time of video

Returns how far the video has been already buffered.

Panel
bgColor#DCDCDC
themeConfluence
languagejs
borderStylenone
Player.getBufferedTime()

 

Set play head at given time

Sets the play head at the given time in seconds.
Panel
bgColor#DCDCDC
themeConfluence
languagejs
borderStylenone
Player.setCurrentTimegetBufferedTime(seconds)
 


Get video title

Returns the title of the current video.

Panel
bgColor#DCDCDC
borderStylenone

Player.getApi('metaData').getVideoTitle()

 


Switch player sources

Load a video specified by ID.

Panel
bgColor#DCDCDC

Player.switchVideo(videoId)

ParameterData TypeDescription
videoIdstringID of the video to be loaded.