How to Customize YouTube Embeddable Player Features

7:36:00 PM |

youtube-embed
  • 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 (not sure why you'd want to)
    • &fs=0
What if you need a custom size for your player?
Well, this seems like an obvious one, and it is.  Keep in mind that YouTube's player is in 16x9 wide-screen format.  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

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
Here is an example embed code using the high-quality "hack"
<iframe width= "425" height="344" src="http://www.youtube.com/v/ID&ap=%2526fmt%3D18" value="true" allowfullscreen="false"></iframe>