2021年1月18日星期一

How to play a YouTube playlist randomly when you access or refresh a page

I'm creating a source code to use as a widget on my blog.

This is what I tried.

<iframe width="170" height="150" src="https://www.youtube.com/embed/videoseries?list=PLLpwaElWBRDduC5vAw7EDy4bQSn7eevqE&index=".rand($min,$max)."&autoplay=1&loop=1&rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>  

Unfortunately, index code did not run on this source code. I'd like to ask for help if you know how to play the YouTube playlist randomly using the index function.:(

https://stackoverflow.com/questions/65785336/how-to-play-a-youtube-playlist-randomly-when-you-access-or-refresh-a-page January 19, 2021 at 12:06PM

没有评论:

发表评论