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