You are here

function theme_video_cck_lastfm_flash in Embedded Media Field 5

the embedded flash displaying the lastfm video

2 theme calls to theme_video_cck_lastfm_flash()
video_cck_lastfm_preview in contrib/video_cck/providers/lastfm.inc
hook video_cck_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser
video_cck_lastfm_video in contrib/video_cck/providers/lastfm.inc
hook video_cck_PROVIDER_video this actually displays the full/normal-sized video we want, usually on the default page view

File

contrib/video_cck/providers/lastfm.inc, line 90

Code

function theme_video_cck_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;
}