You are here

public function MyVideo::iframe in Video Filter 8

HTML5 video (iframe).

Overrides VideoFilterBase::iframe

File

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

Class

MyVideo
Provides MyVideo codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function iframe($video) {
  return [
    'src' => 'http://www.myvideo.de/embedded/public/' . $video['codec']['matches'][2],
    'properties' => [
      'allowfullscreen' => 'true',
    ],
  ];
}