Our Photography is the world made visible through the lens of our soul.

Joe Cornish

Youtube Plugin – Workable Version

December 17th, 2009

I have now got to a point with the youtube plugin where it can be considered a working version. All of the settings that are most likely to be used are now available to have default values set in the admin panel. There is however no validation of textual entries and errors may cause videos not to load or display on the page.

Variables that can be set as defaults:

  • rel
  • autoplay
  • loop
  • border
  • color1
  • color2
  • fs
  • hd
  • showsearch
  • showinfo


Values: 0 or 1. Default is 1. Sets whether the player should load related videos once playback of the initial video starts. Related videos are displayed in the “genie menu” when the menu button is pressed. The player search functionality will be disabled if rel is set to 0.


Values: 0 or 1. Default is 0. Sets whether or not the initial video will autoplay when the player loads.


Values: 0 or 1. Default is 0. In the case of a single video player, a setting of 1 will cause the player to play the initial video again and again. In the case of a playlist player (or custom player), the player will play the entire playlist and then start again at the first video.


Values: 0 or 1. Default is 0. Setting to 1 enables a border around the entire video player. The border’s primary color can be set via the color1 parameter, and a secondary color can be set by the color2 parameter.

color1, color2

Values: Any RGB value in hexadecimal format (0x######). color1 is the primary border color, and color2 is the video control bar background color and secondary border color.


Values: 0 or 1. Default is 0. Setting to 1 enables the fullscreen button. This has no effect on the Chromeless Player. Note that you must include some extra arguments to your embed code for this to work. The bolded parts of the below example enable fullscreen functionality:

    <object width="425" height="344">
    <param name="movie" value="http://www.youtube.com/v/u1zgFlCw8Aw?fs=1"</param>
    <param name="allowFullScreen" value="true"></param>
    <embed src="http://www.youtube.com/v/u1zgFlCw8Aw?fs=1"
      width="425" height="344">


Values: 0 or 1. Default is 0. Setting to 1 enables HD playback by default. This has no effect on the Chromeless Player. This also has no effect if an HD version of the video is not available. If you enable this option, keep in mind that users with a slower connection may have an sub-optimal experience unless they turn off HD. You should ensure your player is large enough to display the video in its native resolution.


Values: 0 or 1. Default is 1. Setting to 0 disables the search box from displaying when the video is minimized. Note that if the rel parameter is set to 0 then the search box will also be disabled, regardless of the value of showsearch.


Values: 0 or 1. Default is 1. Setting to 0 causes the player to not display information like the video title and rating before the video starts playing.

Web Design|PHP\MySQL|Web Design|Wordpress