1. Go to youtube
2. Click "share" then embed
3. Copy the link up to the ?
for example the link for Symphony of Lofi below has this code, but I'm only copying what I put in bold:
<iframe width="560" height="315" src="https://www.youtube.com/embed/eIahbtBz6Uo?si=QiJqPPSjIGn85H4F" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
4. Replace the bold link with your own url code
<iframe width="300px" height="300px" src="https://www.youtube.com/embed/eIahbtBz6Uo//?&;amp;;autoplay=1&;loop=1&;controls=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" loading="lazy"></iframe>
5. Make sure you don't delete the // before the ?
6. If you want to hide the youtube autoplay, adjust the height and width to "0"
It does not autoplay on mobile devices:
Comments
Displaying 0 of 0 comments ( View all | Add Comment )