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)
Playback of multiple Items within a Media Container
//swap to the next Item in a Container Element (Playlist, Collection, AudioAlbum etc)_play.control.interact.next(CONTAINER-ID)
//swap to the previous Item in a Container Element (Playlist, Collection, AudioAlbum etc)_play.control.interact.previous(CONTAINER-ID)
//swap to exactly this Position of the Item List_play.control.interact.swapToPosition(CONTAINER-ID,position)
Playback Mode
//this Command will fail under most conditions (as Fullscreen Enter needs a User Gesture by Browser Security)_play.control.interact.enterFullscreen(CONTAINER-ID)
//start Downloading a connected File, indicated by its position in the current File List_play.control.interact.startDownloadFile(CONTAINER-ID,position);
Interacting with connected Polls
//start Downloading a connected File, indicated by its position in the current File List_play.control.interact.startPoll(CONTAINER-ID,POLL-ID);
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).