function brightcove_get_default_player in Brightcove Video Connect 7.6
Same name and namespace in other branches
- 7.7 brightcove.module \brightcove_get_default_player()
Returns the default player associated with a client.
Parameters
null|int $client_id:
Return value
string Player id.
7 calls to brightcove_get_default_player()
- brightcove_client_form in ./
brightcove.client.inc - Form callback: create or edit a brightcove client.
- MediaBrightcoveVideoStreamWrapper::brightcoveValues in brightcove_media/
includes/ MediaBrightcoveVideoStreamWrapper.inc - Extracts values from a brightcove:// or a brightcove-playlist:// uri.
- theme_brightcove_field_formatter_default in ./
brightcove_field.formatters.inc - Theme callback for Brightcove field formatter. Returns an embedded player with default site player.
- theme_brightcove_field_formatter_iframe in ./
brightcove_field.formatters.inc - _brightcove_field_playlist_widget_form in ./
brightcove_field.playlist.inc - Helper function to return the playlist widget form.
File
- ./
brightcove.module, line 3433 - Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.
Code
function brightcove_get_default_player($client_id = NULL) {
if ($client_id === NULL) {
$client_id = variable_get('brightcove_client_default');
}
$client = brightcove_client_load($client_id);
return isset($client->data['default_player']) ? $client->data['default_player'] : 'default';
}