You are here

function emvideo_livevideo_request in Embedded Media Field 6

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

this is a wrapper for emvideo_request_xml that includes livevideo's api key

2 calls to emvideo_livevideo_request()
emvideo_livevideo_embedded_link in contrib/emvideo/providers/livevideo.inc
hook emvideo_PROVIDER_embedded_link($video_code) returns a link to view the video at the provider's site
emvideo_livevideo_thumbnail in contrib/emvideo/providers/livevideo.inc
hook emvideo_PROVIDER_thumbnail returns the external url for a thumbnail of a specific video TODO: make the args: ($embed, $field, $item), with $field/$item provided if we need it, but otherwise simplifying things

File

contrib/emvideo/providers/livevideo.inc, line 66
This include processes livevideo media files for use by emfield.module.

Code

function emvideo_livevideo_request($method, $args = array(), $cached = TRUE) {
  $args['developerId'] = trim(variable_get('emvideo_livevideo_api_key', ''));
  $request = module_invoke('emfield', 'request_xml', 'livevideo', EMVIDEO_LIVEVIDEO_REST_ENDPOINT . $method, $args, $cached);
  return $request;
}