You are here

public function Vine::iframe in Video Filter 8

HTML5 video (iframe).

Overrides VideoFilterBase::iframe

File

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

Class

Vine
Provides Vine codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function iframe($video) {
  return [
    'src' => '//vine.co/v/' . $video['codec']['matches'][1] . '/embed/simple',
    'properties' => [],
  ];
}