Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3642

Embed YouTube video where link is to playlist but other videos don't autoplay?

$
0
0

Im embedding a YouTube video on my website.

The video is part of a playlist and when the user clicks to open the video on youtube.com I need it to display as part of the playlist.

Ive done this with the following:

<iframe src={`https://www.youtube.com/embed/${video.id}${playlistId}`} />

However, when the user is watching the embedded video I don't want the next video in the playlist to auto-play at the end. On my web page, all of the videos are embedded under headings, so the headings are wrong if the video changes.

I tried this https://www.youtube.com/embed/VIDEO_ID?playlist=VIDEO_ID&loop=1 but it didnt work.

https://developers.google.com/youtube/player_parameters


Viewing all articles
Browse latest Browse all 3642

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>