function video_cck_livevideo_embedded_link in Embedded Media Field 5
hook video_cck_PROVIDER_embedded_link($video_code) returns a link to view the video at the provider's site
Parameters
$video_code: the string containing the video to watch @return a string containing the URL to view the video at the original provider's site
File
- contrib/
video_cck/ providers/ livevideo.inc, line 96
Code
function video_cck_livevideo_embedded_link($video_code) {
$method = 'GetVideoDetails.ashx';
$args = array(
'videoId' => $video_code,
);
$request = video_cck_livevideo_request($method, $args);
$url = $request['VIDEODETAILS']['VIEWURL'][0];
return $url;
}