You are here

public function PicasaSlideshows::flash in Video Filter 8

Flash video (flv)

Overrides VideoFilterBase::flash

File

src/Plugin/VideoFilter/PicasaSlideshows.php, line 39

Class

PicasaSlideshows
Provides PicasaSlideshows codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function flash($video) {
  $user_name = $video['codec']['matches'][1];
  $set_id = $video['codec']['matches'][2];
  return [
    'src' => '//picasaweb.google.com/s/c/bin/slideshow.swf',
    'params' => [
      'flashvars' => "host=picasaweb.google.com&&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F" . $user_name . "%2Falbumid%2F" . $set_id . "%3Falt%3Drss%26kind%3Dphoto%26" . ($video['autoplay'] ? '' : '&noautoplay=1'),
    ],
  ];
}