function brightcove_get_viewer_url in Brightcove Video Connect 7.3
Same name and namespace in other branches
- 7.5 brightcove.module \brightcove_get_viewer_url()
Returns the appropriate URL to the Brightcove viewer.
The calling function should append appropriate query strings to this URL to control the video and player.
@todo Find out how to detect this URL in a nice way;
Return value
string Brightcove viewer path.
File
- ./brightcove.module, line 1443 
- 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_viewer_url() {
  global $is_https;
  $path = 'http://c.brightcove.com/services/viewer/federated_f9';
  if ($is_https) {
    $path = 'https://secure.brightcove.com/services/viewer/federated_f9';
  }
  return $path;
}