Is there a way to pass parameteres like show here in the in Kirby youtube method?
http://www.miracletutorials.com/customize-youtube-videos-on-your-site/#_Toc437169278
Is there a way to pass parameteres like show here in the in Kirby youtube method?
http://www.miracletutorials.com/customize-youtube-videos-on-your-site/#_Toc437169278
Yep, same as here: Kirby built-in Vimeo embed automatically cleaning up embed link
I found a really good free youtube player called https://plyr.io
If someone wants more options.
Thereβs also a Kirbytag for that player: https://github.com/dpschen/kirby-plyrtag
Donβt know what options it offers, but maybe useful.
Great!
After testing a lot yesterday. I found that the plyr player when used with YouTube embed option have a double play button and some other issues due to the way YouTube embed works. So I ended up rolling back and trying to strip the YouTube player for as much stuff possible but still have functional. Looks better than the normal embed.
Is there a way to make a kirbytext tag to overwrite the default one to maintain the clean player @texnixe?
Also for anyone that know more about this here is my code:
<figure class="video">
<?php echo embed::youtube($page->videolink(), ['options' => ['modestbranding' => 1, 'showinfo' => 0, 'rel' => 0, 'iv_load_policy' => 3, 'playsinline' => 1, 'enablejsapi' => 1, 'origin' => $site->url(), 'controls' => 1]]);?>
</figure>
More options here: https://developers.google.com/youtube/player_parameters
Yes, you can overwrite an existing kirbytag by copying it into the /site/tags folder, under the same name; then make your modifications. Alternatively, you can create a new tag.