You are here

public function MetaCafe::flash in Video Filter 8

Flash video (flv)

Overrides VideoFilterBase::flash

File

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

Class

MetaCafe
Provides MetaCafe codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function flash($video) {
  return [
    'src' => '//metacafe.com/fplayer/' . $video['codec']['matches'][1] . '/' . $video['codec']['matches'][2] . '.swf',
  ];
}