function theme_emvideo_lastfm_flash in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 contrib/emvideo/providers/lastfm.inc \theme_emvideo_lastfm_flash()
the embedded flash displaying the lastfm video
2 theme calls to theme_emvideo_lastfm_flash()
- emvideo_lastfm_preview in contrib/
emvideo/ providers/ lastfm.inc - hook emvideo_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser
- emvideo_lastfm_video in contrib/
emvideo/ providers/ lastfm.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/ lastfm.inc, line 94 - Provide support for Last.fm to the emfield.module.
Code
function theme_emvideo_lastfm_flash($embed, $width, $height, $autoplay) {
static $count;
if ($embed) {
// set css id count
$count++;
$output .= '<object width="' . $width . '" height="' . $height . '" id="emfield-videocck-player-lastfm-' . $count . '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" align="middle"> <param name="movie" value="http://cdn.last.fm/videoplayer/33/VideoPlayer.swf" /> <param name="menu" value="false" /> <param name="quality" value="high" /> <param name="bgcolor" value="#000000" /> <param name="allowFullScreen" value="true" /> <param name="flashvars" value="embed=true&creator=&title=&uniqueName=' . $embed . '&albumArt=&album=&duration=&image=http://userserve-ak.last.fm/serve/image:320/' . $embed . '.jpg&FSSupport=true" /> <embed src="http://cdn.last.fm/videoplayer/33/VideoPlayer.swf" menu="false" quality="high" bgcolor="#000000" width="' . $width . '" height="' . $height . '" name="player" align="middle" allowFullScreen="true" flashvars="embed=true&creator=&title=&uniqueName=' . $embed . '&albumArt=&album=&duration=&image=http://userserve-ak.last.fm/serve/image:320/' . $embed . '.jpg&FSSupport=true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>';
}
return $output;
}