YouTube embedding video codes

Below is an example of selected coding that you would see within any embedded YouTube video. The bold part is where you would replace/insert the extra coding. Keep in mind, there’s two parts of this so do the coding for each of the two: embedding
embed src=”http://www.youtube.com/v/MDedb1Kgjys&insert coding here”
Turn off Title & Ratings
&showinfo=0
Turn off Search
&showsearch=0
Turn on Related Videos
&rel=1
Turn off Annotations
&iv_load_policy=3
Force Closed Captions
&cc_load_policy=1
Turn on AutoPlay (not recommended)
&autoplay=1
Loop Playback
&loop=1
Remove Full Screen Option
&fs=0
What if you need a custom size for your player?
If you want to change the dimensions, do so using a 16:9 aspect ratio and add 25px in height for the player controls. For example, lets say that you needed the video to be 320px wide:
–> 320(9)=Height(16) and then add 25px
–> Height=180 + 25 = 205px
Most of the time, however, I just go into the last part of the coding and change the dimensions where it says width and height. Mainly to fit the video into the articles on the website.
How to Customize YouTube Video Quality
Youtube already allows you to customize the embed code and allows the videos to play in HD, but in case you were wondering what the codes were for this and/or how to force play back of high-quality files (not HD);
Show in High-Definition 720p
&hd=1
Show in High-Quality
&ap=%2526fmt%3D18





My name is Zachary James, but most know me as OutbackZack. As a dedicated YouTuber both on and off the camera, I seek to bring news and give insight on the YouTube community. While not working on PauseStopRewind, I entertain many with my insane comedy style videos. Also, many know me as an artist who has worked with various YouTubers ranging from Andy Warski to Shane Dawson.
Slyth66 Says:
Very useful. Thanks
Posted on December 2nd, 2009 at 2:17 pm
bjwnavigator Says:
I didn’t know the autoplay one! Thanks! I might start using that with featured videos in my site!
Posted on December 3rd, 2009 at 1:09 am