Tuesday, August 1, 2006

Embed a Part of a Google Video

You could link to a part of a video, now you can set the starting point of an embedded video.

Just add this to the code generated by Google Video as an attribute of embed:

FlashVars="initialTime=2171"

The starting point is expressed in seconds, so you need to make a little conversion.

Another interesting value of FlashVars is:

FlashVars="autoPlay=true"

This way, the video starts after the page loads. This is not recommended, because a page may have more videos and users shouldn't be forced to watch your annoying video.

You can combine the values like this:

FlashVars="autoPlay=true&initialTime=2171"




{ From Google Video Blog. }

No comments:

Post a Comment