public function MediaBrightcovePlaylistStreamWrapper::interpolateUrl in Brightcove Video Connect 7.4
Interpolate an url.
Return value
null|string
File
- brightcove_media/
includes/ MediaBrightcovePlaylistStreamWrapper.inc, line 36 - Stream wrapper for Brightcove playlists.
Class
- MediaBrightcovePlaylistStreamWrapper
- @file Stream wrapper for Brightcove playlists.
Code
public function interpolateUrl() {
if ($video_id = $this
->getVideoID()) {
// @todo find out how to detect this url in a nice way, it might break
// any time
$player = brightcove_default_player();
return url('http://c.brightcove.com/services/viewer/federated_f9', array(
'query' => array(
'playerID' => $player->player_id,
'playerKey' => $player->player_key,
'isVid' => 'true',
'isUI' => 'true',
'@videoPlayer' => $video_id,
),
));
}
return NULL;
}