You are here

function theme_emvideo_archive_flash in Embedded Media Field 6

The embedded flash displaying the archive video.

2 theme calls to theme_emvideo_archive_flash()
emvideo_archive_preview in contrib/emvideo/providers/archive.inc
hook emvideo_PROVIDER_video
emvideo_archive_video in contrib/emvideo/providers/archive.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/archive.inc, line 274
This is an archive.org provider include file for Embedded Media Video.

Code

function theme_emvideo_archive_flash($item, $width, $height, $autoplay) {
  $output = '';
  if ($item['embed']) {
    $output = <<<EOD
      <embed type="application/x-shockwave-flash" width="{<span class="php-variable">$width</span>}"   height="{<span class="php-variable">$height</span>}"  allowfullscreen="true"
        allowscriptaccess="always"  src="http://www.archive.org/flow/flowplayer.commercial-3.0.5.swf"
        w3c="true"  flashvars='config={
          "key":"#\$b6eb72a0f2f1e29f3d4",
          "playlist":[
            {
              "url":"{<span class="php-variable">$item</span>[<span class="php-string">'data'</span>][<span class="php-string">'thumbnail'</span>]}",
              "autoPlay":true,
              "scaling":"fit"
            },
            {
              "url":"{<span class="php-variable">$item</span>[<span class="php-string">'data'</span>][<span class="php-string">'url'</span>]}",
              "autoPlay":false,
              "accelerated":true,
              "scaling":"fit"
            }
          ],
          "clip":{
            "autoPlay":false,
            "accelerated":true,
            "scaling":"fit"
          },
          "canvas":{
            "backgroundColor":"0x000000",
            "backgroundGradient":"none"
          },
          "plugins":{
            "audio":{
              "url":"http://www.archive.org/flow/flowplayer.audio-3.0.3-dev.swf"
            },
            "controls":{
              "playlist":false,
              "fullscreen":true,
              "gloss":"high",
              "backgroundColor":"0x000000",
              "backgroundGradient":"medium",
              "sliderColor":"0x777777",
              "progressColor":"0x777777",
              "timeColor":"0xeeeeee",
              "durationColor":"0x01DAFF",
              "buttonColor":"0x333333",
              "buttonOverColor":"0x505050"
            }
          },
          "contextMenu":[
            {
              "{<span class="php-variable">$item</span>[<span class="php-string">'data'</span>][<span class="php-string">'metadata'</span>][<span class="php-string">'TITLE'</span>][<span class="php-constant">0</span>]}":"function()"
            },
            "-",
            "Flowplayer 3.0.5"
          ]
        }'> </embed>
EOD;
  }
  return $output;
}