You are here

public static function OSMPlayer::getPlayerSettings in MediaFront 6.2

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

Returns the player settings.

2 calls to OSMPlayer::getPlayerSettings()
OSMPlayer::__construct in players/osmplayer/player/OSMPlayer.php
Constructor.
osmplayer_get_player_settings in players/osmplayer/osmplayer.module
Implementation of hook_get_player_settings

File

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

Class

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

Code

public static function getPlayerSettings($paths = null) {
  $paths = $paths ? $paths : self::getPaths();
  return array(
    'width' => OSMPLAYER_DEFAULT_WIDTH,
    'height' => OSMPLAYER_DEFAULT_HEIGHT,
    'theme' => 'dark-hive',
    'version' => '0.01',
    'showController' => true,
    'disablePlaylist' => false,
    'playlistOnly' => false,
    'showNodeVoter' => false,
    'showTeaserVoter' => false,
    'showTitleBar' => true,
    'showWhenEmpty' => true,
    'playerPath' => $paths['playerPath'],
  );
}