Welcome Apps REST API

<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:

CameraTagPlayer.observe("yourPlayerID", "ready", function(){
  alert('ready!');
  this.play();
}) 

Category Getters Setters Events
Setup getRenderingMode setup
remove
ready
setupError
Playlist getPlaylist
getPlaylistIndex
getPlaylistItem
load
playlistItem
playlist
playlistItem
playlistComplete
Buffer getBuffer   bufferChange
Playback getState play
pause
stop
play
pause
buffer
onIdle
complete
error
Seek getPosition
getDuration
seek seek
time
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 adClick
adCompanions
adComplete
adError
adImpression
adTime
adSkip
beforePlay
beforeComplete
Metadata     meta