You are here

public function FoxNews::html in Video Filter 8

HTML code of the video player.

Overrides VideoFilterBase::html

File

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

Class

FoxNews
Provides FoxNews codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function html($video) {
  $video_id = $video['codec']['matches'][1];
  $html = '<script type="text/javascript" src="http://video.foxnews.com/v/embed.js?id=' . $video_id . '&w=' . $video['width'] . '&h=' . $video['height'] . '"></script>';
  return $html;
}