You are here

public function OSMPlayer::addPlaylistTo in MediaFront 7

Same name and namespace in other branches
  1. 6.2 players/osmplayer/player/OSMPlayer.php \OSMPlayer::addPlaylistTo()
  2. 6 players/osmplayer/player/OSMPlayer.php \OSMPlayer::addPlaylistTo()

Connect the playlist of this media player to another media player.

Usage:

$playlist = new OSMPlayer(array( 'width' => 150, 'height' => 400, 'playlistOnly' => true, 'playlist' => 'http://www.mysite.com/playlist.xml' ));

$player = new OSMPlayer(array( 'width' => 450, 'height' => 400, 'disablePlaylist' => true ));

$playlist->addPlaylistTo( $player );

File

players/osmplayer/player/OSMPlayer.php, line 251

Class

OSMPlayer
PHP wrapper class for the Open Standard Media (OSM) player.

Code

public function addPlaylistTo($player) {
  $this->playlists[] = is_string($player) ? $player : $player
    ->getId();
}