function brightcove_get_experiences_js_url in Brightcove Video Connect 7.5
Same name and namespace in other branches
- 7.7 brightcove.module \brightcove_get_experiences_js_url()
- 7.3 brightcove.module \brightcove_get_experiences_js_url()
- 7.6 brightcove.module \brightcove_get_experiences_js_url()
Returns the appropriate external URL to the BrightcoveExperiences.js file.
Return value
string The appropriate external js URL.
See also
http://support.brightcove.com/en/video-cloud/docs/publishing-video-cloud...
3 calls to brightcove_get_experiences_js_url()
- brightcove_field_init in brightcove_field/
brightcove_field.module - Implements hook_init().
- brightcove_field_player in brightcove_field/
brightcove_field.module - Callback for brightcove_field_player - checks access to the field and prints a player for Lightbox2.
- theme_brightcove_field_formatter_default in brightcove_field/
brightcove_field.formatters.inc - Theme callback for Brightcove field formatter. Returns an embedded player with default site player.
File
- ./
brightcove.module, line 1423 - 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_experiences_js_url() {
global $is_https;
// Set the filename we want to load.
$filename = 'BrightcoveExperiences.js';
if (variable_get('brightcove_player_full_api', FALSE)) {
$filename = 'BrightcoveExperiences_all.js';
}
// Set the appropriate protocol.
$path = 'http://admin.brightcove.com/js/' . $filename;
if ($is_https) {
$path = 'https://sadmin.brightcove.com/js/' . $filename;
}
return $path;
}