function theme_emvideo_tudou_flash in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 contrib/emvideo/providers/tudou.inc \theme_emvideo_tudou_flash()
the embedded flash displaying the tudou video
2 theme calls to theme_emvideo_tudou_flash()
- emvideo_tudou_preview in contrib/
emvideo/ providers/ tudou.inc - hook emvideo_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser
- emvideo_tudou_video in contrib/
emvideo/ providers/ tudou.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/ tudou.inc, line 81 - Provide support for the Tudou provider to the emfield.module.
Code
function theme_emvideo_tudou_flash($embed, $width, $height, $autoplay) {
if ($embed) {
$output .= "\n <object width=\"{$width}\" height=\"{$height}\">\n <param name=\"movie\" value=\"http://www.tudou.com/v/{$embed}\"></param>\n <param name=\"allowScriptAccess\" value=\"always\"></param>\n <param name=\"wmode\" value=\"transparent\"></param>\n <embed src=\"http://www.tudou.com/v/{$embed}\" type=\"application/x-shockwave-flash\" width=\"{$width}\" height=\"{$height}\" allowFullScreen=\"true\" wmode=\"transparent\" allowScriptAccess=\"always\"></embed>\n </object>\n ";
}
return $output;
}