You can embed a Google video in your webpage by including either an
<embed>
or an
<object>
tag in your HTML. You can grab the required code for embedding directly from the Google Video page.
One can see from Google's embedding HTML-snippet that there're some parameters that googleplayer.swf can interpret and use. I was wondering what other parameters are there, so I digged a little bit inside the Google video player.
A Google embedding code looks like this:
<embed style="width: 100%; height: 100%;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf..." allowscriptaccess="always" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL" flashvars="playerMode=normal&autoPlay=false&docid=-671184977191327454&showShareButtons=true" align="middle">
This one contains four parameters in the flashvars: playerMode, autoPlay, docid and showShareButtons.
Here's a list of all the flashvars that you can feed into the Google video player (I mean the version of the player that is available at this moment):
- _url
- adserver
- audioUrl
- autoPlay (true | false)
- bufferTime
- docId (the id of the video)
- eovMessage
- feed
- fscid
- height
- hl (the language of the interface, eg. "en")
- initialTime
- initialheight
- initialwidth
- loop
- mediaRss
- messagesUrl
- newPlayerMode ("normal" | "mini" | "fullscreen" | "embedded" | "clickToPlay" | "syndicated")
- newVideoUrl
- nostats
- playerMode ("normal" | "mini" | "fullscreen" | "embedded" | "clickToPlay" | "syndicated")
- pubhost
- pubid
- redirecturl
- seekTime
- showShareButtons (true | false)
- statsHost
- statsduration
- subtitle ("author" | "on" | "off")
- thumbnailUrl
- videoUrl
- width
Imho the most useful among all is the "playerMode" parameter. You can play with the others too, but from a user's point of view they will not make too much of a difference.
Recent comments
1 year 46 weeks ago
3 years 15 weeks ago
3 years 16 weeks ago
3 years 18 weeks ago
3 years 19 weeks ago
3 years 25 weeks ago
3 years 25 weeks ago
3 years 25 weeks ago
3 years 26 weeks ago
3 years 26 weeks ago