I use the following code in my web page to successfully autoplay and loop one video. Now, I\'d like to add another video, essentially looping two videos. So, after one video is
For add more than one video in your iframe, you can use the following code:
https://www.youtube.com/embed/?rel=0&version=3&playlist=,,&loop=1&autoplay=1
Where:
VIDEO_ID_1: is the first videoId to reproduce.VIDEO_ID_2, VIDEO_ID_3, VIDEO_ID_N and so on will be the videoIds you want include.In this way, you can include a max of 196 or 200 videos in the same iframe1 that will autoplay and loop once the final videoId is reached.
This is a small sample with 4 videos on it.
This is another sample with 93 videos on it.
If you check this playlist, you'll see that it has more than 1000 videos on it - (1653 videos to be exact), but, the iframe resets the threshold to 196 or 200 videos approximately.
1 I discover this threshold when I tried to answer this question in Stack Overflow and you can check it by yourself if you enter to the Youtube website - this playlist and check that it will show only the first 200 videos on it.
This might be a threshold set (and undocumented) by YouTube.