I'm looking for a way to automatically embed YouTube videos solely based on their YouTube URLs, rather than having to go to the video, click share, click embed, and copy-paste the HTML code into my site.
An example:
The YouTube Video is https://www.youtube.com/watch?v=dQw4w9WgXcQ (Warning: Rick Roll)
When I click Share --> Embed --> The code given is
<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allowfullscreen></iframe>
Notice how they placed embed
in there and altered a lot of the URL
I have 100s of videos that I need to do this for, so obviously going in and manually editing them isn't going to work out.
Is there any way to embed the YouTube video without altering the URL?
Thanks for your help