filmed by Alexander Wagner 2011
original article Parameters
0
or 1
. The default value is 0
.
cc_load_policy
parameter to 1
, then the player will show captions in the specified language when the player loads. If you do not also set the cc_load_policy
parameter, then captions will not display by default, but will display in the specified language if the user opts to turn captions on.
1
causes closed captions to be shown by default, even if the user has turned captions off. The default behavior is based on user preference.
red
and white
, and, by default, the player uses the color red in the video progress bar. See the YouTube API blog for more information about color options.color
parameter to white
will disable the modestbranding
option.
controls=0
– Player controls do not display in the player.controls=1
(default) – Player controls display in the player.1
causes the player to not respond to keyboard controls. The default value is 0
, which means that keyboard controls are enabled. Currently supported keyboard controls are:
0
jumps to the beginning of the video, 1
jumps to the point 10% into the video, 2
jumps to the point 20% into the video, and so forth.1
enables the player to be controlled via IFrame or JavaScript Player API calls. The default value is 0
, which means that the player cannot be controlled using those APIs.start
player parameter or the startSeconds
parameter, which is used in YouTube Player API functions for loading or queueing a video.
0
prevents the fullscreen button from displaying in the player. The default value is 1
, which causes the fullscreen button to display.
fr
and fr-ca
are both valid values. Other language input codes, such as IETF language tags (BCP 47) might also be handled properly.1
causes video annotations to be shown by default, whereas setting to 3
causes video annotations to not be shown by default. The default value is 1
.
list
parameter, in conjunction with the listType
parameter, identifies the content that will load in the player.
listType
parameter value is search
, then the list
parameter value specifies the search query.listType
parameter value is user_uploads
, then the list
parameter value identifies the YouTube channel whose uploaded videos will be loaded.listType
parameter value is playlist
, then the list
parameter value specifies a YouTube playlist ID. In the parameter value, you need to prepend the playlist ID with the letters PL
as shown in the example below.https://www.youtube.com/embed?
listType=playlist
&list=PLC77007E23FF423C6
list
and listType
parameters, the IFrame embed URL does not need to specify a video ID.listType
parameter, in conjunction with the list
parameter, identifies the content that will load in the player. Valid parameter values are playlist
, search
, and user_uploads
.list
and listType
parameters, the IFrame embed URL does not need to specify a video ID.
1
causes the player to play the initial video again and again. In the case of a playlist player (or custom player), the player plays the entire playlist and then starts again at the first video.0
and 1
, and the default value is 0
.loop
parameter only works in the AS3 player when used in conjunction with the playlist
parameter. To loop a single video, set the loop
parameter value to 1
and set the playlist
parameter value to the same video ID already specified in the Player API URL:https://www.youtube.com/v/VIDEO_ID?
version=3
&loop=1
&playlist=VIDEO_ID
1
to prevent the YouTube logo from displaying in the control bar. Note that a small YouTube
text label will still display in the upper-right corner of a paused video when the user's mouse pointer hovers over the player.
enablejsapi
parameter value to 1
, you should always specify your domain as the origin
parameter value.
VIDEO_ID
specified in the URL path, and the videos specified in the playlist
parameter will play thereafter.
0
: This value causes fullscreen playback. This is currently the default value, though the default is subject to change.1
: This value causes inline playback for UIWebViews
created with the allowsInlineMediaPlayback
property set to TRUE
.1
, which is the default value, then the player does show related videos.0
, then the player does not show related videos.rel
parameter is set to 0
, related videos will come from the same channel as the video that was just played.
seekTo
function, the player will look for the closest keyframe to the time you specify. This means that sometimes the play head may seek to just before the requested time, usually no more than around two seconds.
origin
parameter identifies the widget provider's domain, but YouTube Analytics should not identify the widget provider as the actual traffic source. Instead, YouTube Analytics uses the widget_referrer
parameter value to identify the domain associated with the traffic source.