You are here

function theme_emvideo_youtube_default_external in Embedded Media Field 6

This is the fallback display, for when we don't have SWF Object or JW Flash Media Player.

1 theme call to theme_emvideo_youtube_default_external()
theme_emvideo_youtube_flash in contrib/emvideo/providers/youtube.inc
The embedded flash displaying the youtube video.

File

contrib/emvideo/providers/youtube.inc, line 562
This include processes youtube.com media files for use by emfield.module.

Code

function theme_emvideo_youtube_default_external($height, $width, $url, $id, $div_id, $fullscreen_value, $flashvars) {
  $output = <<<FLASH
        <div id="{<span class="php-variable">$div_id</span>}"><object type="application/x-shockwave-flash" height="{<span class="php-variable">$height</span>}" width="{<span class="php-variable">$width</span>}" data="{<span class="php-variable">$url</span>}" id="{<span class="php-variable">$id</span>}">
          <param name="movie" value="{<span class="php-variable">$url</span>}" />
          <param name="allowScriptAccess" value="sameDomain"/>
          <param name="quality" value="best"/>
          <param name="allowFullScreen" value="{<span class="php-variable">$fullscreen_value</span>}"/>
          <param name="bgcolor" value="#FFFFFF"/>
          <param name="scale" value="noScale"/>
          <param name="salign" value="TL"/>
          <param name="FlashVars" value="{<span class="php-variable">$flashvars</span>}" />
          <param name="wmode" value="transparent" />
        </object></div>
FLASH;
  return $output;
}