You are here

public function GoogleVideo::flash in Video Filter 8

Flash video (flv)

Overrides VideoFilterBase::flash

File

src/Plugin/VideoFilter/GoogleVideo.php, line 25

Class

GoogleVideo
Provides GoogleVideo codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function flash($video) {
  return [
    'src' => '//video.google.com/googleplayer.swf?docId=' . $video['codec']['matches'][1],
  ];
}