You are here

public function FlickrVideo::flash in Video Filter 8

Flash video (flv)

Overrides VideoFilterBase::flash

File

src/Plugin/VideoFilter/FlickrVideo.php, line 26

Class

FlickrVideo
Provides FlickrVideo codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function flash($video) {
  return [
    'src' => '//www.flickr.com/apps/video/stewart.swf?v=1.161',
    'params' => [
      'flashvars' => '&photo_id=' . $video['codec']['matches'][2] . '&flickr_show_info_box=true',
    ],
  ];
}