function theme_emvideo_voicethread_flash in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emvideo/providers/voicethread.inc \theme_emvideo_voicethread_flash()
the embedded flash displaying the voicethread
2 theme calls to theme_emvideo_voicethread_flash()
- emvideo_voicethread_preview in contrib/
emvideo/ providers/ voicethread.inc - hook emvideo_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser
- emvideo_voicethread_video in contrib/
emvideo/ providers/ voicethread.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/ voicethread.inc, line 78
Code
function theme_emvideo_voicethread_flash($embed, $width, $height, $autoplay, $options = array()) {
if ($embed) {
if ($autoplay) {
$autoplay_value = '&autoplay=1';
}
$output = " <object type=\"application/x-shockwave-flash\" height=\"{$height}\" width=\"{$width}\" data=\"http://www.voicethread.com/book.swf?b={$embed}" . $autoplay_value . "\" id=\"VideoPlayback\" >\n <param name=\"movie\" value=\"http://www.voicethread.com/book.swf?b={$embed}" . $autoplay_value . "\" wmode=\"transparent\" />\n </object>\n";
}
return $output;
}