To call a method or to receive information from the player, just use the player instance to call them.

// Call the play method
js3qVideoPlayer.play();

Available Methods

Player controls

Method Type Description
fullscreen -
exitfullscreen -
enableControls -
disableControls -
destroy -
getVersion -

Media controls

Method type Description
play -
pause -
unmute -
mute -
volume Integer [0.1..1] Sets the volume. E.g. for 50% volume use 0.5
seek Integer
getVideoInfo
getCurrentTime
getDuration
getStreamType
getPlaybackTime
Subtitles / Captions
Method Type Description
getSubtitles Object
subtitle Integer
AudioTracks
Method Type Description
getAudioTracks Object
audiotrack Integer

Ads

Method Type Description
requestAd String Triggers a midroll. Pre- and PostRolls will still be called anyway. requestAd() or requestAd(url) if specifying an ad tag url.

Sidebar

Method Type Description
setSideBarHTML String
showSideBar
showSideBar