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=[number]&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=true
autoPlay=false (by default)
* loop lets you repeat a video indefinitely.
loop=true
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=true
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=[number] &loop=true&playerMode=simple
Labels: Google Video
Just what I needed on my site! Very usefil indeed, instant star in my reader.
T said on November 17, 2006 8:00 PM PDT:
Thanks for the customized coding! I've tried to find the best solution to change standard Google video interface; here they are. The videos on my blog, http://www.telecombooksblog.com, look much clean now.
btw, I also added a link on my video page to link back here.
Hans said on November 20, 2006 7:12 AM PDT:
Dear Alex, thanks for your great work.
I tried the different playerModes, but I do not like the big black frame around the video, wich is not in playerMode=embedded
I really miss the feature to upload Flash videos to Google Video. I read at a Google Group, that Google doesn't want you to have the possebility to place URLs as layers on the content (like they have the Play-Again-Layer now) Is that the case ? Its really bad, as Flash is such a powerful tool not only for artists and it gets excluded from the Google video public. Best regards, Hans
stf said on February 17, 2007 2:54 PM PDT:
Hi! My problem is: tabbing navigation ignores the play button of the googleplayer: the button will not receive focus durant tabbing. Is there a parameter to set ? Any hint ? Thanks for your answer...
Csaba said on February 20, 2007 3:16 PM PDT:
Hi!
Where can I find all the parameters with wich I can customize the google video player?
Thanks
said on May 25, 2007 6:25 PM PDT:
thanks, it is very helpful.
nomi said on June 4, 2007 12:06 AM PDT:
that is really fantastic post, thanks. it helps me a lot.
said on July 15, 2007 10:52 AM PDT:
Can we have the playerMode=Mini with progress bar that we can move back and forth?
said on November 4, 2007 6:55 PM PDT:
Hi!, I wonder if it is possible to make a personalized skin por a google embed video????
Plssss I really need to know this!!!
write to my email just_cinthy@yahoo.es
said on December 11, 2007 4:03 AM PDT:
very well explained, tks
Nidhi said on March 11, 2008 12:53 AM PDT:
Hello..I tried using mini mode..its showing like link..and if we click on that video its showing the Java Script Error may i know how to solve that?
said on March 13, 2008 3:18 AM PDT:
I would like to know what parameters would setup the subtitle language (enabling the subtitle is made by "subtitle=on").
Here's the url: http://video.google.com/googleplayer.swf?docId=7653564598486729089&hl=fr&subtitle=on
(I would like to set the subtitles to appear in english and not german without clicking the menu button)