-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loop parameter not working in HTML5 player #24
Comments
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 //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. |
In order to play a single video in a loop, a playlist parameter with the same videoID has to be passed as described in getgrav#24 This is official solution described in YouTube Docs: https://developers.google.com/youtube/player_parameters#loop
Oh. Ok. I tried to do it directly from git without success. Here it is: #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
The text was updated successfully, but these errors were encountered: