public function Vimeo::flash in Video Filter 8
Flash video (flv)
Overrides VideoFilterBase::flash
File
- src/
Plugin/ VideoFilter/ Vimeo.php, line 66
Class
- Vimeo
- Provides Vimeo codec for Video Filter.
Namespace
Drupal\video_filter\Plugin\VideoFilterCode
public function flash($video) {
$attributes = $this
->attributes($video);
$attributes['clip_id'] = $video['codec']['matches'][1];
return [
'src' => '//www.vimeo.com/moogaloop.swf?' . implode('&', $attributes),
];
}