02 March 2007

Embedded Videos (Google)

Following up Embedded Videos (YouTube), here's an example of an embedded Google video. The technique is similar, although the parameters are different. The clip I chose has been available for months, but I like it so much that I don't mind seeing it again.


The Immortal Game: A History of Chess (4:15) • David Shenk's new book (GOOD MORNING AMERICA - September 4th)

I covered the basics of searching for chess videos in an About Chess article: Chess Videos [25 February 2007; Elsewhere on the Web].

***

Since I am often curious about how software works, I looked at the HTML code for the two services. The YouTube code is provided by YouTube in the 'Embed' field. The Google code is something I worked out by looking at examples from other blogs. Here is the code stripped of the leading '<' and trailing '>', one tag per line...

YouTube code:

  • object width="425" height="350"
  • param name="movie" value="http://www.youtube.com/v/4hA0WjUTR2c"
  • /param
  • param name="wmode" value="transparent"
  • /param
  • embed src="http://www.youtube.com/v/4hA0WjUTR2c" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"
  • /embed
  • /object

Google code:

  • embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=-171374104176431873"
  • /embed

...The YouTube code duplicates the 'embed' parameters in the 'object' and 'param' tags. Is this really necessary?

No comments: