You are here

public function MakerTV::iframe in Video Filter 8

HTML5 video (iframe).

Overrides VideoFilterBase::iframe

File

src/Plugin/VideoFilter/MakerTV.php, line 27

Class

MakerTV
Provides MakerTV (Previously Blip.TV) codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function iframe($video) {
  $video_id = !empty($video['codec']['matches'][1]) ? $video['codec']['matches'][1] : '';
  if (empty($video_id)) {
    $video_id = !empty($video['codec']['matches'][3]) ? $video['codec']['matches'][3] : '';
  }
  return [
    'src' => 'http://makerplayer.com/embed/maker/' . $video_id,
    'properties' => [
      'allowfullscreen' => 'true',
      'seamless' => 'true',
      'scrolling' => 'no',
    ],
  ];
}