Call: (209) 560-6611

Customize YouTube

Date: May 2, 2012 Author: ang Category: Affordable Web Design Internet Tips Tutorials Tags: , Comments: 0

Customize YouTube video using embed markup

Here is your standard iframe YouTube.com video code embed snippet:

 Javascript |  copy code |? 
1
<iframe width="560" height="315" src="http://www.youtube.com/embed/qnRYpnh6IsY?rel=0" frameborder="0" allowfullscreen></iframe>

Notice the width and height variables. You can change these to re-size the YouTube video when it plays.

Here is what this snippet looks like embedded into your webpage:

Here is a list of YouTube embed markup variables you can add to the src="http://www.youtube.com/embed/qnRYpnh6IsY?rel=0" string, within the snippet, to control features on the YouTube video player.

Variables to Customize YouTube Video Player

  1. &showinfo=0

    Adding the 'showinfo' variable and setting it to 0 will turn off the title and ratings.

  2. &showsearch=0

    Adding 'showsearch' variable and setting it to 0 will turn off search.

  3. &rel=1

    The 'rel' variable is already part of the standard src string by default, setting it to 1 will turn on related videos.

  4. &iv_load_policy=3

    Adding the 'iv_load_policy' variable and setting it to 3 will turn off annotations.

  5. &cc_load_policy=1

    Adding the 'cc_load_policy' variable and setting it to 1 will turn off annotations.

  6. &autoplay=1

    Adding the 'autoplay' variable and adding setting it to 1 will make the video start playing automatically when someone visits the page.

  7. &loop=1

    Adding the 'loop' variable and setting it to '1' will make your video loop over and over once the play button is pressed.

  8. &fs=0

    Adding the 'fs' variable and setting it to 0 will disable the 'full screen' mode for the youtube video.

  9. &hd=1

    Adding the 'hd' variable and setting it to 1 will force the video to play in high definition 720p when it plays.

  10. &ap=%2526fmt%3D18

    Adding the 'ap' variable and setting it to '&ap=%2526fmt%3D18' will force the video to play in high quality when it plays.

  11. autohide=1

    Adding the 'autohide' variable and setting it to 1 will force the video to hide the video controls when the mouse isn't moving and hovering over the video.

  12. modestbranding=1

    Adding the 'modestbranding' variable and setting it to 1 will hide the YoutTube logo from the video.

  13. disablekb=1

    Adding the 'disablekb' variable and setting it to 1 will hide video controls.

Customize YouTube video tips

If your videos includes text the viewer must read, make your video player dimensions large and enable high definition.
If your video is on a homepage, or you want to make it match the website theme, disable the video controls and displays. Make the video as bland and as indifferent as possible.
If your YouTube video is promoting your brand or product, make sure the ‘rel’ variable is set to equal 0 so that your competitor's videos don’t start playing after your video is done.

Leave a Reply

Your email address will not be published. Required fields are marked *

Before you post, please prove you are sentient.

What is melted ice?

Before you post, please prove you are sentient.

What is 7 multiplied by 2?