Generating YouTube Embeds

Generate YouTube embed codes

Cut and paste the first thing you see when you go to YouTube and hit Embed just as you would to post to Facebook, in this case-

http://youtu.be/OMOVFvcNfvE

into the Generator.  Now delete that part which always says-

http://youtu.be/

and push the Generate! button.  You’ll come out with a piece of crap that looks like this-

<object width=”475″ height=”381″><param value=”http://www.youtube.com/v/OMOVFvcNfvE&showsearch=0&rel=0&fs=1&autoplay=0&ap=%2526fmt%3D18″ name=”movie” /><param value=”window” name=”wmode” /><param value=”true” name=”allowFullScreen” /><embed width=”475″ height=”381″ wmode=”window” allowfullscreen=”true” type=”application/x-shockwave-flash” src=”http://www.youtube.com/v/OMOVFvcNfvE&showsearch=0&fs=1&rel=0&autoplay=0&ap=%2526fmt%3D18″></embed></object><br /><a href=”http://www.youtube.com/watch?v=OMOVFvcNfvE” target=”_blank”>View on YouTube</a>

Which will pretty much work fine if you cut and paste it as is OR you can be a little fussier like me and strip away all the non-essential garbage (everything that’s not between <embed> and </embed>) and end up with something like this.

<embed width=”475″ height=”381″ wmode=”window” allowfullscreen=”true” type=”application/x-shockwave-flash” src=”http://www.youtube.com/v/OMOVFvcNfvE&showsearch=0&fs=1&rel=0&autoplay=0&ap=%2526fmt%3D18″></embed>

QED

(Based on an earlier and chattier version- About Those Embeds)

(Now available in the ‘About‘ box on the extreme right side of the page.)

1 comments

Comments have been disabled.