|
|
Player argumentsThese arguments are passed into the player, usually through the "flashvars" attribute of the "embed" element. There are probably other ways of getting them in there, but come on, be conventional. Critical valuesThese values are vital to the normal operation of the player. - fmt_map
- Most likely stands for format map, seems to contain a series of numbers which tell the player what type of video formats are available for that particular video.
- HD videos always begin with "22"
- In this script, I am able to switch from HD (fmt=22) to HQ (fmt=18) by doing : swfArgs.fmt_map=swfArgs.fmt_map.replace("22/2000","18/512");
- t
- A base64 encoded token value necessary for the video, and is probably just used to keep spammers and throttlers from abusing YouTube.
- vq
- Video quality, which decides which file format of the video will be played.
- Possible values are blank, null, 1, or 2. 2 will load the highest quality video.
- video_id
- The id of the video of course. Tells the player which video to load.
- enablejsapi
- JSAPI = JavaScript Application Programming Interface. An integer value indicating whether or not to allow JavaScript interaction. Always set this to "1".
- hd
- Set this to 1 to enable HD. Note that if vq=2, there is no need to use this parameter.
Helper valuesYou probably don't need to change these at all. They're harmless meta/info things. - plid
- Playlist ID, if the current video is part of a playlist.
- keywords
- Keywords related to the video, most likely used to find the viewer related videos at the end of the video.
- q
- The query, or search, if any, used to bring the user to the page.
- sourceid
- Where you came from to get to the video. Here are some values I've seen:
- y - YouTube
- ys - YouTube Search
- gs - Google Search
- r - Not sure, but happens when linked to from Digg
- hl
- Host language, mine always says "en" for english.
- feature
- Tells which feature you came from to find the video, if any. I've seen "channel" and "popular" before.
- creator
- Tells who uploaded or created the video. Usually has the username of the uploader.
- sdetail
- Site detail? It's usually an escaped url, usually the referring page.
- record
- An integer value, I've seen 1.
- rec_categories
- rec_descr
- A description, I've seen "Video Cam Direct Upload"
- rec_key
- rec_keywords
- rec_server
- Server address, I've seen "sjl-webcam1.sjl.youtube.com:80"
- rec_title
Aesthetics- iurl
- Image of a url to display before the video starts.
- color1
- The foreground color of the player.
- color2
- The background color of the player.
- iv_load_policy
- Determines whether or not to show annotations. Set to 1 to show, 3 to hide.
- cc_load_policy
- If set to 1, captions or subtitles will be shown by default.
Other- autoplay
- An integer value, either 0 or 1. If not supplied, it will be assumed as 1. 1 = play automatically. 0 = Don't play automatically. Note that using autoplay=0 will not start downloading the video at all.
- disablekb
- If for some reason you don't like the default shortcuts on the player (space, arrow keys), set this to one to disable keyboard shortcuts.
- start
- An integer, number of seconds in to start the video at.
- fs
- An integer, either 0 or 1. Set it to 0 to remove the fullscreen button from the player.
- playnext
- Either 0 or 1, determines whether to play the next video or not.
- jsapicallback
- Which function to call, if any, when the player has loaded.
Embedded player onlyThese only work in the embedded YouTube player (the one with the perma-logo): - loop
- An integer value, either 0 or 1. If not supplied, it will be assumed as 0. 1 = loop video, 0 = regular.
- rel
- An integer value, either 0 or 1. If not supplied, it will be assumed as 1. 1 = show related videos at the end of the video. 0 = don't show.
ComponentsThese parts of the player are loaded externally. - watermark
- It contains the location of the YouTube HD logo shown briefly at the start of HD videos. Used to be named "hd_watermark"
Ratings- ratings
- An integer value (probably bitwise-optimized) that indicates which ratings the video has (for violence, language or whatnot).
- ratings_module
- SWF location of the ratings module.
AnnotationsAnnotation-related components - iv_storage_server
- iv_module
Ads / Evil- infringe
- Determines whether the player is muted for copyright infringement. Removing it gives back control of the volume, but to no avail, since you can't hear it anyway.
- ad_logging_flag
- Has a numeric value, not sure what it does.
- ad_module
- Location of the advertisement loader.
- ad_tag
- Contains the locations of advertisements related to the video.
- ctb
- ctb_xml
- Loaded with advertising data.
- cr
- Perhaps, country/region. I noticed it says "US" for me.
- invideo
- A boolean which seems to indicate whether or not to put advertisements into the video.
Unknown- afv
- fexp
- A numeric value as a string, usually "900073" or "900504
- instream
- mpu
- l
- An integer value. Perhaps a location code?
- tk
- Seems to be another base-64 encoded "token" value.
- shortform
- A boolean value, either "true" or "false".
- sk
- Seems to be another "token" value. Perhaps the "k" stands for "key"?
- usef
- An integer value, usually 0.
- is_double_click_tracked
- video_recorder_module
- Location of an swf object.
|