-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Doesnt seem to work with youtube playlist. #415
Comments
the only solution i see now is to not use PLYR for playlists and just use the embed code for embedding an Iframe when using a playlist. |
Hey there @Lefthandmedia, I think it is just a matter of updating the regex that determines the provider. if (
!provider &&
(url.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || url.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || url.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/))
) {
provider = 'youtube';
} Unless it's something that plyr is not able to do, in which case you would need to reach out to them about updating how they handle YouTube playlists. |
Hi Ginger, Lefthandmedia |
You're right on the RegEx. But I think I found the issue: The url you're giving as a video is: But when you open the lightbox, the url that is used is: So what is missing? The Seems like Plyr is consuming the param and not using it, you might be able to pass in the parameter using the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Im trying to use a youtube playlist link in GL.
This playlistlink (
https://www.youtube.com/embed/videoseries?list=PLM-mb7IpX4mryWYYoyl2HHboOUQHHC5hI&autoplay=1
) works fine in a browser but not in the lightboxAre you able to reproduce the bug in the demo site
Yes see here:
https://codepen.io/Lefthandmedia/pen/vYzMZQd
Expected behavior
I expect the playlist to work in the Lightbox overlay
Post the code you are using
There is no specific code. see the codepen
Desktop:
All
Smartphone:
All
The text was updated successfully, but these errors were encountered: