You are here

function theme_emvideo_lastfm_flash in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 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&amp;creator=&amp;title=&amp;uniqueName=' . $embed . '&amp;albumArt=&amp;album=&amp;duration=&amp;image=http://userserve-ak.last.fm/serve/image:320/' . $embed . '.jpg&amp;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&amp;creator=&amp;title=&amp;uniqueName=' . $embed . '&amp;albumArt=&amp;album=&amp;duration=&amp;image=http://userserve-ak.last.fm/serve/image:320/' . $embed . '.jpg&amp;FSSupport=true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>';
  }
  return $output;
}