-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 Youtube Playlist #530
Comments
@Marky-Gee You'd have to use I've solved this problem in my app by keeping track of what videos have been already played. Then I'd check if all videos have been played in @cookpete I can work on the PR on the weekend if you'd be interested in having that functionality built-in. |
There is a
https://developers.google.com/youtube/iframe_api_reference#setLoop So in theory you should be able to wait for |
@cookpete, unfortunately it throws:
I was testing it on the demo page using this playlist https://www.youtube.com/watch?v=z9RBALOraws&list=PLDEcUiPhzbjI217qs5KgMvbvx6-fgY_Al.
|
Fixes cookpete/react-player#530 Instead of setting the `loopOnEnded` static and letting Player loop for us, we want to manually loop within the Youtube player to ensure that we are _not_ playing a playlist when the video ends, which would loop a single video. Instead we use `player.setLoop` to ensure playlists loop
Fixes cookpete/react-player#530 Instead of setting the `loopOnEnded` static and letting Player loop for us, we want to manually loop within the Youtube player to ensure that we are _not_ playing a playlist when the video ends, which would loop a single video. Instead we use `player.setLoop` to ensure playlists loop
Fixes cookpete/react-player#530 Instead of setting the `loopOnEnded` static and letting Player loop for us, we want to manually loop within the Youtube player to ensure that we are _not_ playing a playlist when the video ends, which would loop a single video. Instead we use `player.setLoop` to ensure playlists loop
Fixes cookpete/react-player#530 properly Fixes cookpete/react-player#639 Closes cookpete/react-player#662
Fixes cookpete/react-player#530 Instead of setting the `loopOnEnded` static and letting Player loop for us, we want to manually loop within the Youtube player to ensure that we are _not_ playing a playlist when the video ends, which would loop a single video. Instead we use `player.setLoop` to ensure playlists loop
Fixes cookpete/react-player#530 properly Fixes cookpete/react-player#639 Closes cookpete/react-player#662
Fixes cookpete/react-player#530 Instead of setting the `loopOnEnded` static and letting Player loop for us, we want to manually loop within the Youtube player to ensure that we are _not_ playing a playlist when the video ends, which would loop a single video. Instead we use `player.setLoop` to ensure playlists loop
Fixes cookpete/react-player#530 properly Fixes cookpete/react-player#639 Closes cookpete/react-player#662
Hi,
Is it possible to loop a playlist of youtube videos?
When I use the loop prop, only the video in the URL prop will loop, instead of the playlist.
The text was updated successfully, but these errors were encountered: