YouTube embedding video codes

Posted by admin On December - 2 - 2009

youtube embed 300x340 How to Customize YouTube Player Embeds   Tips & Tricks

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

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • MySpace
YouTube embedding video codes
You can leave a response, or trackback from your own site.

2 Responses

  1. Slyth66 Says:

    Very useful. Thanks :)

    Posted on December 2nd, 2009 at 2:17 pm

  2. 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

Leave a Reply




Recent Comments

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.

Recent Comments

A nerd that provides thrills

On Oct-10-2009
Reported by admin

The 10 don’ts of YouTube

On Jan-3-2010
Reported by admin

YouTuber killed by Mario provides killer laughs

On Oct-21-2009
Reported by admin

Connorbot interview

On Aug-19-2009
Reported by admin

Miley Cyrus’ rap was an epic fail

On Oct-12-2009
Reported by admin
SEO Powered by Platinum SEO from Techblissonline