You are here

function theme_emvideo_sevenload_flash in Embedded Media Field 6.3

Same name and namespace in other branches
  1. 6 contrib/emvideo/providers/sevenload.inc \theme_emvideo_sevenload_flash()

the embedded flash displaying the Sevenload video

2 theme calls to theme_emvideo_sevenload_flash()
emvideo_sevenload_preview in contrib/emvideo/providers/sevenload.inc
hook emvideo_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser
emvideo_sevenload_video in contrib/emvideo/providers/sevenload.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/sevenload.inc, line 84
This include processes Sevenload media files for use by emfield.module.

Code

function theme_emvideo_sevenload_flash($embed, $width, $height) {
  if ($embed) {
    $embed = preg_replace("/\\/.*/", "", $embed);
    $output .= "<object width=\"{$height}\" height=\"{$height}\" type=\"application/x-shockwave-flash\" data=\"http://static.sevenload.net/swf/player/player.swf?v=142\" id=\"sevenloadPlayer_{$embed}\"><param name=\"allowScriptAccess\" value=\"always\"/><param name=\"allowFullscreen\" value=\"true\"/><param name=\"flashvars\" value=\"configPath=http%3A%2F%2Fflash.sevenload.com%2Fplayer%3FportalId%3Den%26autoplay%3D0%26mute%3D0%26itemId%3D{$embed}&amp;locale=en_US&amp;autoplay=0&amp;environment=\"/></object>";
  }
  return $output;
}