You are here

function theme_video_cck_ustream_flash in Embedded Media Field 5

the embedded flash displaying the ustream video

2 theme calls to theme_video_cck_ustream_flash()
video_cck_ustream_preview in contrib/video_cck/providers/ustream.inc
hook video_cck_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser
video_cck_ustream_video in contrib/video_cck/providers/ustream.inc
hook video_cck_PROVIDER_video this actually displays the full/normal-sized video we want, usually on the default page view

File

contrib/video_cck/providers/ustream.inc, line 108

Code

function theme_video_cck_ustream_flash($embed, $width, $height, $autoplay, $options = array()) {
  static $counter;
  if ($embed) {
    $counter++;
    $autoplay = isset($options['autoplay']) ? $options['autoplay'] : $autoplay;
    $autoplay_value = $autoplay ? 'true' : 'false';
    $output .= "<object type='application/x-shockwave-flash' height='{$height}' width='{$width}' data='http://ustream.tv/flash/video/{$embed}' id='ustream-video-{$counter}' ><param name='movie' value='http://www.ustream.tv/flash/video/{$embed}' /><param name='allowScriptAccess' value='always' /><param name='quality' value='best' /><param name='scale' value='noScale' /><param name='wmode' value='transparent' /><param name='FlashVars' value='autoplay={$autoplay_value}' /><param name='allowfullscreen' value='true' /></object>";
  }
  return $output;
}