function theme_emvideo_ustream_flash in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 contrib/emvideo/providers/ustream.inc \theme_emvideo_ustream_flash()
the embedded flash displaying the ustream video
2 theme calls to theme_emvideo_ustream_flash()
- emvideo_ustream_preview in contrib/
emvideo/ providers/ ustream.inc - hook emvideo_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser
- emvideo_ustream_video in contrib/
emvideo/ providers/ ustream.inc - hook emvideo_PROVIDER_video this actually displays the full/normal-sized video we want, usually on the default page view
File
- contrib/
emvideo/ providers/ ustream.inc, line 133
Code
function theme_emvideo_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;
}