sampotts / plyr

A simple HTML5, YouTube and Vimeo player
https://plyr.io
MIT License
26.1k stars 2.91k forks source link

Youtube Playlist #1512

Open sparkktv opened 4 years ago

sparkktv commented 4 years ago

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.

burakozturk16 commented 4 years ago

this is useful https://codepen.io/onigetoc/pen/veWNbP

sparkktv commented 4 years ago

That code is from V2 of Plyr, not V3...

Lefthandmedia commented 1 year ago

So it's still not possible to use Youtube playlists?

EwaldJa commented 2 months ago

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