You are here

public function Slideshare::iframe in Video Filter 8

HTML5 video (iframe).

Overrides VideoFilterBase::iframe

File

src/Plugin/VideoFilter/Slideshare.php, line 33

Class

Slideshare
Provides Slideshare codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function iframe($video) {
  return [
    'src' => '//www.slideshare.net/slideshow/embed_code/' . $video['codec']['matches'][1],
  ];
}