function theme_emvideo_metacafe_flash in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 contrib/emvideo/providers/metacafe.inc \theme_emvideo_metacafe_flash()
2 theme calls to theme_emvideo_metacafe_flash()
- emvideo_metacafe_preview in contrib/
emvideo/ providers/ metacafe.inc - emvideo_metacafe_video in contrib/
emvideo/ providers/ metacafe.inc
File
- contrib/
emvideo/ providers/ metacafe.inc, line 61 - This include processes metacafe.com media files for use by emfield.module.
Code
function theme_emvideo_metacafe_flash($embed, $width, $height, $autoplay) {
$output = '';
if ($embed) {
$autoplay = $autoplay ? '?playerVars=autoPlay=yes' : '';
$output .= '<embed src="http://www.metacafe.com/fplayer/' . $embed . '.swf' . $autoplay . '" width="' . $width . '" height="' . $height . '" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>';
}
return $output;
}