Playback Control

The SDK also allows to control all Playback Mechanisms of the Player in every Moment. The _play.control.interact Namespace is used for these Functions.

There are two Ways to control a Player Instances Playback:

  • it is possible to use the global _play.control.interact.* Method with the Use of a Container-ID Parameter.

  • it is possible to call the Method directly on the Player Instance Object (returned by every _play.control.addPlayer* Method)

General Playback

_play.control.interact.play(CONTAINER-ID)
_play.control.interact.pause(CONTAINER-ID,canBeResumed)
//starts play, if paused and pauses if currently playing.
_play.control.interact.toggle(CONTAINER-ID)
//is identical to play() on an Instance in "paused" State
_play.control.interact.resume(CONTAINER-ID)
//only possible on a Player Instance, that has not been started yet, but is ready to start
_play.control.interact.startMuted(CONTAINER-ID)
_play.control.interact.mute(CONTAINER-ID)
_play.control.interact.unmute(CONTAINER-ID)
_play.control.interact.seekTo(CONTAINER-ID,time)
_play.control.interact.seekBy(CONTAINER-ID,time)

Playback of multiple Items within a Media Container

Playback Mode

Changing the Media Object

Interacting with connected Files and Downloads

Interacting with connected Polls

POLL-ID is the valid ID of a Poll. If POLL-ID is omitted, the Player will start the Poll, that has been connected to the current Media (if any).

Last updated