<player> JS Methods & Events

You can control your <player> using our Javascript API. Below is a full list of the available methods and events for the <player>.

To call a method on your player simply reference the player by it's unique ID in the CameraTag.players array. For example to stop playback a player with id "yourPlayerID" you would call:

CameraTag.players["yourPlayerID"].stop()

To observe an event in a player use the CameraTag.observe method along with your player's ID. For example:

CameraTag.observe("yourPlayerID", "ready", function(){
  alert('ready!')
}) 

Class Getters Setters Events
Setup getRenderingMode setup
remove
ready
setupError
Playlist getPlaylist
getPlaylistIndex
getPlaylistItem
load
playlistItem
onPlaylist
onPlaylistItem
onPlaylistComplete
Buffer getBuffer   bufferChange
Playback getState play
pause
stop
play
pause
buffer
onIdle
complete
error
Seek getPosition
getDuration
seek onSeek
onTime
Volume getMute
getVolume
setMute
setVolume
mute
volume
Resize getWidth
getHeight
getFullscreen
resize fullscreen
resize
Quality getQualityLevels
getCurrentQuality
setCurrentQuality qualityLevels
qualityChange
Controls getControls
getSafeRegion
addButton
removeButton
setControls
controls
displayClick
Advertising   playAd onAdClick
onAdCompanions
onAdComplete
onAdError
onAdImpression
onAdTime
onAdSkip
onBeforePlay
onBeforeComplete
Metadata     meta