You are here

function theme_emaudio_soundclick_flash in Embedded Media Field 5

The embedded flash displaying the soundclick audio.

2 theme calls to theme_emaudio_soundclick_flash()
emaudio_soundclick_audio in contrib/emaudio/providers/soundclick.inc
Implementation of hook emaudio_soundclick_audio(). This actually displays the full/normal-sized video we want, usually on the default page view.
emaudio_soundclick_preview in contrib/emaudio/providers/soundclick.inc
Implementation of hook emaudio_soundclick_preview(). This actually displays the preview-sized video we want, commonly for the teaser.

File

contrib/emaudio/providers/soundclick.inc, line 59

Code

function theme_emaudio_soundclick_flash($embed, $width, $height, $autoplay) {
  static $count;
  if ($embed) {
    $autoplay = $autoplay ? 1 : 0;
    $id = 'emaudio-soundclick-' . ++$count;
    $output .= "\n      <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0\" width=\"{$width}\" height=\"{$height}\" id=\"{$id}\" align=\"center\">\n      <param name=\"quality\" value=\"high\" />\n      <param name=\"width\" value=\"{$width}\" />\n      <param name=\"height\" value=\"{$height}\" />\n      <param name=\"name\" value=\"MP3PlayerVIP\" />\n      <param name=\"allowScriptAccess\" value=\"always\" />\n      <param name=\"wmode\" value=\"transparent\" />\n      <embed src=\"http://www.soundclick.com/widgets/creatives/mp3PlayerVIP.swf\"\n      quality=\"high\" width=\"{$width}\" height=\"{$height}\"\n      name=\"MP3PlayerVIP\" align=\"middle\"\n      allowScriptAccess=\"always\" wmode=\"transparent\"\n      type=\"application/x-shockwave-flash\" flashvars=\"bandid={$embed}&ext=1&autoplay={$autoplay}\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n      </object>\n    \n";
  }
  return $output;
}