You are here

public function Youtube::flash in Video Filter 8

Flash video (flv)

Overrides VideoFilterBase::flash

File

src/Plugin/VideoFilter/Youtube.php, line 76

Class

Youtube
Provides Youtube codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function flash($video) {
  $attributes = $this
    ->attributes($video);
  return [
    'src' => '//www.youtube.com/v/' . $video['codec']['matches'][1] . '?' . implode('&', $attributes),
    'params' => [
      'wmode' => 'opaque',
    ],
  ];
}