Open sparkktv opened 4 years ago
this is useful https://codepen.io/onigetoc/pen/veWNbP
That code is from V2 of Plyr, not V3...
So it's still not possible to use Youtube playlists?
Hello,
I know this is an old topic, but I managed to use a Youtube playlist with plyr.io.
I passed the listType
and list
args directly to the Youtube Player API using the data-plyr-config
argument as specified here .
Here is a minimalistic working example.
Regards
Is there a way to use Plyr to show a Playlist with youtube? I know Youtube gives two different embed options with iframe using the loading videos with commas or the video series method.
<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=PLx0sYbCqOb8TBPRdmBHs5Iftvv9TPboYG" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<iframe id="ytplayer" type="text/html" width="720" height="405" src="https://www.youtube.com/embed/?playlist=ag5CAizvDUk,4uA8LBlxwh8&playsinline=1" frameborder="0" allowfullscreen>
I'm hoping that we could use one of these with ply to use with Playlists on youtube.