Open michalhudecek opened 6 years ago
There is an easy fix for this issue. I wanted to create a pull request but looks like I don't have permissions. Here is the code that needs to be added to classes/Twig/YoutubeTwigExtension.php
on line 56
//YouTube loop fix for HTML5 player
if ($key == 'loop' && $value == 1) {
$filtered_player_parameters['playlist'] = $video_id;
}
michalhudecek, Thanks! All work now.
This should be a very easy pull request. Any fix in sight?
Anyone can create a pull request, you can simply navigate to the file in github and click edit. Then when you save it automatically creates a pull request.
Oh. Ok. I tried to do it directly from git without success. Here it is: https://github.com/getgrav/grav-plugin-youtube/pull/36
Looks like this one can be closed now?
Was it released to production?
To make loop working in embed videos, the playlist parameter has to be set to the same youtube video.
See loop in https://developers.google.com/youtube/player_parameters