You are here

function theme_video_cck_dailymotion_flash in Embedded Media Field 5

the embedded flash displaying the dailymotion video

2 theme calls to theme_video_cck_dailymotion_flash()
video_cck_dailymotion_preview in contrib/video_cck/providers/dailymotion.inc
hook video_cck_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser
video_cck_dailymotion_video in contrib/video_cck/providers/dailymotion.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/dailymotion.inc, line 90

Code

function theme_video_cck_dailymotion_flash($embed, $width, $height, $autoplay) {
  if ($embed) {
    if ($autoplay) {
      $autoplay_value = '&autoStart=1';
    }
    $output .= "    <object type=\"application/x-shockwave-flash\" height=\"{$height}\" width=\"{$width}\" data=\"http://www.dailymotion.com/swf/{$embed}" . $autoplay_value . "\" id=\"VideoPlayback\">\n      <param name=\"movie\" value=\"http://www.dailymotion.com/swf/{$embed}" . $autoplay_value . "\" />\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_value}\" />\n      <param name=\"wmode\" value=\"transparent\" />\n    </object>\n";
  }
  return $output;
}