You are here

public function Teachertube::iframe in Video Filter 8

HTML5 video (iframe).

Overrides VideoFilterBase::iframe

File

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

Class

Teachertube
Provides Teachertube codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function iframe($video) {
  return [
    'src' => '//www.teachertube.com/embed/video/' . $video['codec']['matches'][2],
    'properties' => [
      'allowfullscreen' => 'true',
    ],
  ];
}