You are here

public function OSMPlayer::addControllerTo in MediaFront 7

Same name and namespace in other branches
  1. 6.2 players/osmplayer/player/OSMPlayer.php \OSMPlayer::addControllerTo()
  2. 6 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 272

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();
}