Sunday, April 15, 2007

Testing uploading video to Google Video and embedding of the video in a post

I used Windows Movie Maker (available in Windows) to make this video. I am testing uploading of the video to Google Video and embedding the video into this post. Well, the test have gone well, and the script for embedding into the blog seemed simpler than Youtube on which I have done another post at Testing embedding of video from Youtube in a post (click "BACK" button to get back to this post. The width of the video was 400px, exactly the same as the width of the main column of this blog. It means I didn't have to do any editing to the script to make the video fit into the main column of this blog. The width of the video from Youtube was wider, making it necessary to edit the script, and not only that, there were two places in the Youtube script where you have to alter the width and the height, whereas in Google video, the width and the height only occur once in the script, making editing easier if editing is needed.

I put the script from Google Video for embedding into this blog into the scroll box below for your examination:

<embed style="width:400px;height:326px;" type="application/x-shockwave-flash" src="" id="VideoPlayback" align="middle" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL" FlashVars="playerMode=embedded"></embed>

Update: 10:05: Just to make sure that it is due to the difference between Google Video and Youtube, and not the video I upload, I tried uploading the same video to Youtube, and it confirmed that video uploaded to Youtube has a width of 425 compared to 400 for Google Video, and there were two occurances of width and height in Youtube. I paste the script from Youtube in the scrollbox below for comparison:

<object width="425" height="350"><param name="movie" value=""></param><embed src="" type="application/x-shockwave-flash" width="425" height="350"></embed></object>


Rob VB said...

What if you wanted the video to start automatically when the reader opens the page. Where in the HTML do you add an autostart command? What would it be exactly in your script?

Peter Chen said...

Hi Rob,

By right, adding the attribute autostart="true" should do the job, but tests showed it didn't work. See
Testing embedding video (Google Video) Part 3)

Testing embedding video (Youtube) Part 4).

Perhaps there is an option in Google Video or Youtube to make the video start automatically, I don't know. I don't do video much and maybe when time permit, I will surf over there to check.

Peter (Blog*Star 2006 and 2007)
Blogger Tips and Tricks