You are here

function brightcove_default_player in Brightcove Video Connect 7.4

Same name and namespace in other branches
  1. 7.3 brightcove.module \brightcove_default_player()
  2. 7.5 brightcove.module \brightcove_default_player()

Get the default player.

Return value

mixed|null

2 calls to brightcove_default_player()
MediaBrightcovePlaylistStreamWrapper::interpolateUrl in brightcove_media/includes/MediaBrightcovePlaylistStreamWrapper.inc
Interpolate an url.
MediaBrightcoveVideoStreamWrapper::interpolateUrl in brightcove_media/includes/MediaBrightcoveVideoStreamWrapper.inc
Interpolate an url.

File

./brightcove.module, line 795
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_default_player() {
  $default = variable_get('brightcove_player_default', NULL);
  if (is_null($default)) {
    drupal_set_message(t("The default brightcove player has not been defined yet."), 'warning');
    return NULL;
  }
  return brightcove_player_load($default);
}