You are here

function emvideo_youtube_preview in Embedded Media Field 6

hook emvideo_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser

Parameters

$code: the video code for the video to embed @param $width the width to display the video @param $height the height to display the video @param $field the field info from the requesting node @param $item the actual content from the field @return the html of the embedded video

File

contrib/emvideo/providers/youtube.inc, line 639
This include processes youtube.com media files for use by emfield.module.

Code

function emvideo_youtube_preview($code, $width, $height, $field, $item, $node, $autoplay, $options = array()) {
  $options['item'] = $item;
  $options['node'] = $node;
  $output = theme('emvideo_youtube_flash', $code, $width, $height, $autoplay, $options);
  return $output;
}