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.