Skip to content

Latest commit

 

History

History
145 lines (138 loc) · 2.27 KB

methods.md

File metadata and controls

145 lines (138 loc) · 2.27 KB

Methods

player methods can handled over javascript e.g.:

  • Usage

var js3qVideoPlayer;
    (function () {
       ... // player code here
    })();

js3qVideoPlayer.play(); // Calls method
  • List of methods

Method Description
pause pauses video
play2 plays video
seek in seconds seeks to position
getCurrentTime current position
getDuration video length
getVolume 0.1 to 1.0 get volume
setVolume 0.1 to 1.0 get volume
getSubtitles array of available subtitles
setSubtitles set subtitle by index
getAudioTracks array of available audiotracks
setAudioTrack set audiotrack by index
hideControlbar hides player controls
mute mutes video
unmute unmutes video
getLiveDelayInSeconds
getPlaybackTime get current viewing time (pageview)
getFullPlaybackTime get full playback time (user and video)
showSideBarInfoIcon displays the sidebar info icon (top-right)
showSideBar displays the sidebar
hideSideBar hides the Sidebar
setSideBarHTML sets the HTML of the sidebar
fullscreen
exitfullscreen

Back to index.