Versions Compared

Key

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

...

Event

Payload

Description

Players cibles

getMediaInfos

Code Block
{
  source: 'dam',
  name: 'getMediaInfos'
}

Request information for viewing the current media

Image

playerTogglePlayPause

Code Block
{
  source: 'dam',
  action: 'playerTogglePlayPause'
}

For a video player, pause the media if it is currently playing; if it is not playing (paused, ended, etc.), switch it to play.

video / audio

playerPlay

Code Block
{
  source: 'dam',
  action: 'playerPlay'
}

For a video player, start playing the media.

Info

Please note that browser restricts browsers restrict to start playing a video without user input . Once the video has been started by the user, this event is availableor with a volume > 0. Please read this documentation if you are having trouble with the playerPlay event.

video / audio

playerPause

Code Block
{
  source: 'dam',
  action: 'playerPause'
}

For a video player, pause the media.

video / audio

playerSeekTo

Code Block
{
  source: 'dam',
  action: 'playerSeekTo',
  payload: 42
}

For a video player, set the playback to the requested position.

video / audio

playerFullscreen

Code Block
{
  source: 'dam',
  action: 'playerFullscreen'
}

For a video player, set the playback to the requested position.

All

playerChromeless

Code Block
{
  source: 'dam',
  action: 'playerChromeless',
  payload: Bool
}

Toggle the player to or from chromeless mode. In chromeless mode, buttons and action bars are removed, leaving only the media display.

All

playerMute

Code Block
{
  source: 'dam',
  action: 'playerMute'
}

For a video player, mute the media.

video / audio

playerUnmute

Code Block
{
  source: 'dam',
  action: 'playerUnmute'
}

For a video player, unmute the media.

video / audio

playerSetVolume

Code Block
{
  source: 'dam',
  action: 'playerSetVolume',
  payload: Number (entre 0 et 100)
}

For a video player, set the media volume to the requested level.

video / audio

...