You are here

function osmplayer_get_player_params in MediaFront 7

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

Implements hook_get_player_params.

These are the parameters that the player requires...

File

players/osmplayer/osmplayer.module, line 254

Code

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