public function OSMPlayer::addControllerTo in MediaFront 6.2
Same name and namespace in other branches
- 6 players/osmplayer/player/OSMPlayer.php \OSMPlayer::addControllerTo()
- 7 players/osmplayer/player/OSMPlayer.php \OSMPlayer::addControllerTo()
Connect the controlbar of this media player to another media player.
Usage:
$controller = new OSMPlayer(array( 'width' => 400, 'height' => 26, 'controllerOnly' => true, ));
$player = new OSMPlayer(array( 'playlist' => 'http://www.mysite.com/myplaylist.xml ));
$controller->addControllerTo( $player );
File
- players/
osmplayer/ player/ OSMPlayer.php, line 264
Class
- OSMPlayer
- PHP wrapper class for the Open Standard Media (OSM) player.
Code
public function addControllerTo($player) {
$this->controllers[] = is_string($player) ? $player : $player
->getId();
}