I wanted somewhere to quickly access the iFrame code to embed YouTube videos without the border, player controls, related videos and all the other jazz that comes as standard….Similar to this:-
So I thought I’d just add it to my blog!
Here’s the normal embed code for the above video:-
<iframe width="560" height="349" src="http://www.youtube.com/embed/0goFRZnw2M0" frameborder="0" allowfullscreen></iframe>
And here’s the modified code (with modified elements in bold)
<iframe width="560" height="349" src="http://www.youtube.com/embed/0goFRZnw2M0?rel=0&controls=0&border=0&egm=0&showinfo=0&showsearch=0"&frameborder="0" allowfullscreen></iframe>
And if you want to autoplay it:-
<iframe width="560" height="349" src="http://www.youtube.com/embed/0goFRZnw2M0?rel=0&controls=0&border=0&egm=0&showinfo=0&showsearch=0&autoplay=1"&frameborder="0" allowfullscreen></iframe>
Here’s a full list of YouTube Embed Parameters (opens new window).
This, of course, only works until they ban your account for no discernable reason!