You are here

function theme_emvideo_dailymotion_flash in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 contrib/emvideo/providers/dailymotion.inc \theme_emvideo_dailymotion_flash()

the embedded flash displaying the dailymotion video

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

Code

function theme_emvideo_dailymotion_flash($embed, $width, $height, $autoplay) {
  $output = '';
  if ($embed) {
    $autoplay = $autoplay ? '&autoStart=1' : '';
    $output = "    <object type=\"application/x-shockwave-flash\" height=\"{$height}\" width=\"{$width}\" data=\"http://www.dailymotion.com/swf/{$embed}{$autoplay}\" id=\"VideoPlayback\">\n      <param name=\"movie\" value=\"http://www.dailymotion.com/swf/{$embed}{$autoplay}\" />\n      <param name=\"allowScriptAcess\" value=\"always\" />\n      <param name=\"allowFullScreen\" value=\"true\" />\n      <param name=\"quality\" value=\"best\" />\n      <param name=\"bgcolor\" value=\"#FFFFFF\" />\n      <param name=\"scale\" value=\"noScale\" />\n      <param name=\"salign\" value=\"TL\" />\n      <param name=\"FlashVars\" value=\"playerMode=embedded{$autoplay}\" />\n      <param name=\"wmode\" value=\"transparent\" />\n    </object>\n";
  }
  return $output;
}