You are here

public function Facebook::iframe in Video Filter 8

HTML5 video (iframe).

Overrides VideoFilterBase::iframe

File

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

Class

Facebook
Provides Facebook codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

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