You are here

function emvideo_livevideo_embedded_link in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 contrib/emvideo/providers/livevideo.inc \emvideo_livevideo_embedded_link()

hook emvideo_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/emvideo/providers/livevideo.inc, line 101
This include processes livevideo media files for use by emfield.module.

Code

function emvideo_livevideo_embedded_link($video_code) {
  $method = 'GetVideoDetails.ashx';
  $args = array(
    'videoId' => $video_code,
  );
  $request = emvideo_livevideo_request($method, $args);
  $url = $request['VIDEODETAILS']['VIEWURL'][0];
  return $url;
}