function brightcove_get_experiences_js_url in Brightcove Video Connect 7.3
Same name and namespace in other branches
- 7.7 brightcove.module \brightcove_get_experiences_js_url()
- 7.5 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 1421 - 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;
$path = 'http://admin.brightcove.com/js/BrightcoveExperiences.js';
if ($is_https) {
$path = 'https://sadmin.brightcove.com/js/BrightcoveExperiences.js';
}
return $path;
}