12-04-2019, 08:23 PM
1.) Find the music you'd like on YouTube. Right-click the video, select 'Copy Embed Code'.
2.) Now change the iframe width and height to 0. This makes the video invisible.
3.) Add ?autoplay=1 just after the embed url, and you're done!
Some videos do disable embedding so you may need to look around or use an alternative method.
Quote:<iframe width="962" height="541" src="https://www.youtube.com/embed/SSmoopV__iA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
2.) Now change the iframe width and height to 0. This makes the video invisible.
Quote:<iframe width="0" height="0" src="https://www.youtube.com/embed/SSmoopV__iA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
3.) Add ?autoplay=1 just after the embed url, and you're done!
Quote:<iframe width="0" height="0" src="https://www.youtube.com/embed/SSmoopV__iA?autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Some videos do disable embedding so you may need to look around or use an alternative method.