function theme_emvideo_ustreamlive_flash in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 contrib/emvideo/providers/ustreamlive.inc \theme_emvideo_ustreamlive_flash()
the embedded flash displaying the ustreamlive video
2 theme calls to theme_emvideo_ustreamlive_flash()
- emvideo_ustreamlive_preview in contrib/
emvideo/ providers/ ustreamlive.inc - hook emvideo_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser
- emvideo_ustreamlive_video in contrib/
emvideo/ providers/ ustreamlive.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/ ustreamlive.inc, line 119
Code
function theme_emvideo_ustreamlive_flash($embed, $width, $height, $autoplay, $options = array()) {
static $counter;
if ($embed) {
$counter++;
$autoplay = isset($options['autoplay']) ? $options['autoplay'] : $autoplay;
$autoplay_value = $autoplay ? 'true' : 'false';
$id = 'utv654382';
$output .= <<<USTREAM
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{<span class="php-variable">$width</span>}" height="{<span class="php-variable">$height</span>}" id="{<span class="php-variable">$id</span>}"><param name="flashvars" value="viewcount=false&autoplay={<span class="php-variable">$autoplay_value</span>}&brand=embed"/><param name="allowfullscreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="movie" value="http://www.ustream.tv/flash/live/{<span class="php-variable">$embed</span>}"/><embed flashvars="viewcount=false&autoplay={<span class="php-variable">$autoplay_value</span>}&brand=embed" width="{<span class="php-variable">$width</span>}" height="{<span class="php-variable">$height</span>}" allowfullscreen="true" allowscriptaccess="always" id="{<span class="php-variable">$id</span>}" name="utv_n_741085" src="http://www.ustream.tv/flash/live/{<span class="php-variable">$embed</span>}" type="application/x-shockwave-flash" /></object>
USTREAM;
// $output .= "<object type='application/x-shockwave-flash' height='$height' width='$width' data='http://ustreamlive.tv/flash/video/$embed' id='ustreamlive-video-$counter' ><param name='movie' value='http://www.ustreamlive.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;
}