You are here

public function ArchiveOrg::iframe in Video Filter 8

HTML5 video (iframe).

Overrides VideoFilterBase::iframe

File

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

Class

ArchiveOrg
Provides ArchiveOrg codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function iframe($video) {
  return [
    'src' => '//www.archive.org/embed/' . $video['codec']['matches'][1],
  ];
}