glightbox
glightbox copied to clipboard
YouTube Shorts
I find that the videos don't play when YouTube Shorts URL is provided. Can someone guide me to fix it?
Thanks, Leena
Hmmm, that is strange, can you post an example of the url you're using? There is a chance that plyr.js, and subsequently GLightbox, doesn't support that format yet.
Here is a sample URL: https://www.youtube.com/shorts/Rj2JgmXzLxQ
Sorry, forgot to add it earlier.
Yup its like I thought, currently the regex that looks for the provider is this https://github.com/biati-digital/glightbox/blob/29e365d4148c72ac08da752a5d0ebbe595f7046f/src/js/slides/video.js#L38-L43
If someone wants to add to the regex the necessary regex pieces, I'm more than happy to review the PR :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.