function theme_emaudio_podomatic_flash in Embedded Media Field 6
Same name and namespace in other branches
- 5 contrib/emaudio/providers/podomatic.inc \theme_emaudio_podomatic_flash()
- 6.3 contrib/emaudio/providers/podomatic.inc \theme_emaudio_podomatic_flash()
hook theme_emaudio_PROVIDER_flash the embedded flash displaying the podomatic audio
2 theme calls to theme_emaudio_podomatic_flash()
- emaudio_podomatic_audio in contrib/
emaudio/ providers/ podomatic.inc - hook emaudio_PROVIDER_audio this actually displays the full/normal-sized video we want, usually on the default page view
- emaudio_podomatic_preview in contrib/
emaudio/ providers/ podomatic.inc - hook emaudio_PROVIDER_preview this actually displays the preview-sized video we want, commonly for the teaser
File
- contrib/
emaudio/ providers/ podomatic.inc, line 85 - This include processes Podomatic audio files for use by emaudio.module.
Code
function theme_emaudio_podomatic_flash($embed, $width, $height, $autoplay) {
// <object width="320" height="315"><param name="movie" value="http://www.podOmatic.com/flash/flashcatcher.swf"></param><embed type="application/x-shockwave-flash" src="http://www.podOmatic.com/flash/flashcatcher.swf" width="320" height="315" flashvars="playlist_url=http://funkylondon.podOmatic.com/xspf.xspf" ></embed></object><br /><a href="http://www.podOmatic.com/podcast/embed/funkylondon" style="text-decoration: none"><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#0033ff"><strong>Click here to get your own player.</strong></font></a><br><br>
if ($embed) {
/*
if ($autoplay) {
$autoplay_value = '&autostart=1';
}
*/
$output = '<embed type="application/x-shockwave-flash"
src="http://www.podomatic.com/swf/mediaplayer.swf" width="320" height="340"
allowscriptaccess="always" allowfullscreen="true"
flashvars="thumbsinplaylist=true&width=320&height=340&file=http://' . $embed . '.podOmatic.com/xspf_stream.xml&autoscroll=false&displayheight=240&searchbar=false" />';
}
return $output;
}