public function OSMPlayer::addPlaylistTo in MediaFront 6.2
Same name and namespace in other branches
- 6 players/osmplayer/player/OSMPlayer.php \OSMPlayer::addPlaylistTo()
- 7 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 243
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();
}