*Maj 20, 2012, 01:53:23 pm
Dobrodošli, Gost. Molim vas prijavite se ili se registrujte.
Da niste izgubili svoj aktivacioni e-mail?
Maj 20, 2012, 01:53:23 pm

Prijavite se korisničkim imenom, lozinkom i dužinom sesije
450 poruka u 113 tema 829 članova - Poslednji član: kinozonesp
Pretraga:     Napredna pretraga
SEO Majstor - Internet Marketing Forum
* Početna Pomoć Prijavljivanje Registracija
0 članova i 2 gostiju pregledaju ovu temu. « prethodna tema sledeća tema »
Stranice: [1] Štampaj
Autor Tema: YouTube Embedded Player Parameters  (Pročitano 3850 puta)
Lord
Administrator
Jr. Member
*****

Karma: 6
Poruke: 95


Branimir Ivanov


WWW
« poslato: Septembar 30, 2009, 04:14:25 am »

Verujem da svi mi stavljamo youtube klipove na svojim sajtovima. Ono što je meni trebalo sinoć je parametar koji treba podesiti da se na embedded video na pokazuju dugmad (play, pause, volume...) Nisam našao, ali zato naleteh na sledeće parametre koje na daje sam Google. Svi oni imaju svoje default vrednosti ali je vrlo lako promeniti ih.

   2. Parameters
         1. rel
         2. autoplay
         3. loop
         4. enablejsapi
         5. playerapiid
         6. disablekb
         7. egm
         8. border
         9. color1, color2
        10. start
        11. fs
        12. hd
        13. showsearch
        14. showinfo
        15. iv_load_policy
        16. cc_load_policy
   3. Example Usage

Overview

This document describes all the parameters that are available in the YouTube embedded player. Appending these parameters to the SWF URL allow you to set things like color and borders, as well as whether to enable the JavaScript API for the player.
Parameters

All of the following parameters are optional. They are officially supported only by the embedded player, but a subset of them may work with other players such as the playlist player or the custom player.

rel
    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.
autoplay
    Values: 0 or 1. Default is 0. Sets whether or not the initial video will autoplay when the player loads.
loop
    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.
enablejsapi
    Values: 0 or 1. Default is 0. Setting this to 1 will enable the Javascript API. For more information on the Javascript API and how to use it, see the JavaScript API documentation.
playerapiid
    Value can be any alphanumeric string. This setting is used in conjunction with the JavaScript API. See the JavaScript API documentation for details.
disablekb
    Values: 0 or 1. Default is 0. Setting to 1 will disable the player keyboard controls. Keyboard controls are as follows:
         Spacebar: Play / Pause
         Arrow Left: Jump back 10% in the current video
         Arrow Right: Jump ahead 10% in the current video
         Arrow Up: Volume up
         Arrow Down: Volume Down
egm
    Values: 0 or 1. Default is 0. Setting to 1 enables the "Enhanced Genie Menu". This behavior causes the genie menu (if present) to appear when the user's mouse enters the video display area, as opposed to only appearing when the menu button is pressed.
border
    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. color1 is the primary border color, and color2 is the video control bar background color and secondary border color.
start
    Values: A positive integer. This parameter causes the player to begin playing the video at the given number of seconds from the start of the video. Note that similar to the seekTo function, the player will look for the closest keyframe to the time you specify. This means sometimes the play head may seek to just before the requested time, usually no more than ~2 seconds.
fs
    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"
      type="application/x-shockwave-flash"
      allowfullscreen="true"
      width="425" height="344">
    </embed>
    </object>

hd

    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.
showsearch
    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.
showinfo
    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.
iv_load_policy
    Values: 1 or 3. Default is 1. Setting to 1 will cause video annotations to be shown by default, whereas setting to 3 will cause video annotation to not be shown by default.
cc_load_policy
    Values: 1. Default is based on user preference. Setting to 1 will cause closed captions to be shown by default, even if the user has turned captions off.

izvor:
http://code.google.com/apis/youtube/player_parameters.html
Sačuvana

Stranice: [1] Štampaj
« prethodna tema sledeća tema »
Prebaci se na:  

Pokreće MySQL Pokreće PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Srpski prevod: Jovan Turanjanin
Themis design by Bloc Domain Promo Codes and GoDaddy Promo Code Agregator.
Ispravan XHTML 1.0! Ispravan CSS!