Hello,
I’m trying to use Html::video
but cannot figure out how to set the options properly.
Html::video(string $url, array $options = [ ], array $attr = [ ]): string|null
According to the documentation the $options array should let me add vimeo
and youtube
options, which will be used as query params in the embed URL.
But:
<?php
$options = ['background'=>'1']; // this does not change the embed url
$options = ['background'=>true]; // neither does this
$options = ['background=1']; // neither does this
$url .= '?background=1'; // this works, but I would prefer to use $options array
?>
<?= Html::video( $url, $options, $attr ) ?>