You are here

function osmplayer_get_player_params in MediaFront 6.2

Same name and namespace in other branches
  1. 6 players/osmplayer/osmplayer.module \osmplayer_get_player_params()
  2. 7.2 players/osmplayer/osmplayer.module \osmplayer_get_player_params()
  3. 7 players/osmplayer/osmplayer.module \osmplayer_get_player_params()

Implementation of hook_get_player_params.

These are the parameters that the player requires...

File

players/osmplayer/osmplayer.module, line 258

Code

function osmplayer_get_player_params() {
  $hasServices = module_exists('services') && module_exists('xmlrpc_server');
  $params = OSMPlayer::getPlayerParams(osmplayer_get_player_paths());
  $params['protocol'] = $hasServices ? "auto" : "json";
  return $params;
}