Embedded Player Parameters Google video


Embedded Player Parameters Google video


If you go to Google Video, you can get a code that allows you to embed a video into your site. Although Google doesn’t mention that, the Flash player used by Google Video (googleplayer.swf) lets you customize many parameters. In the code obtained from Google, you’ll see in the src attribute: http://video.google.com/googleplayer.swf?docId=%5Bnumber%5D&hl=en. You can add more parameters to the player, not just docId and hl. Here are some of the more interesting.

* playerMode lets you change the skin of the player.

playerMode=simple (a basic version of the player without progress bar and volume control, you can see it in the screenshot below)
playerMode=mini (even more basic)
playerMode=clickToPlay (the skin used for video ads)
playerMode=embedded (the standard skin)

* autoPlay lets you control if the video starts automatically.
autoPlay=false (by default)

* loop lets you repeat a video indefinitely.
loop=false (by default)

* showShareButtons is useful if you want to add a button at the end of the video that says « Send link to a friend ».
showShareButtons=false (by default)

So here’s one of example of customized player, that repeats a video and shows a simplified skin:
http://video.google.com/googleplayer.swf?docId=%5Bnumber%5D &loop=true&playerMode=simple


Laisser un commentaire

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion /  Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion /  Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion /  Changer )


Connexion à %s

%d blogueurs aiment cette page :