Skip to content

Kirby 4.2.0


Creates a video embed via <iframe> for YouTube or Vimeo videos; the embed URLs are automatically detected from the given URL

Html::video(string $url, array $options = [ ], array $attr = [ ]): string|null


Name Type Default Description
$url * string Video URL
$options array [ ] Additional vimeo and youtube options
(will be used as query params in the embed URL)
$attr array [ ] Additional attributes for the <iframe> tag

Return type


Parent class

Kirby\Cms\Html inherited from Kirby\Toolkit\Html