HowTo: Google Videos on your website

After I realized that www.downloadgooglevideos.com was shutdown by GOogle, and all the embedded videos were not working anymore, I decided to come with a new way to put it on your website. I found one, but it’s not as easy as before, but it works! I’ll try to explain how to do it and if anyone finds a better way to do it, please, let me know!

 

The old code I had on this page wasn’t working in IE, so I re-wrote it in a better way to be able to embed Google videos on your website. Let me know if there is any problem. 🙂

 

First, open the page where the video is on http://video.google.com, then, in Firefox, right click on “View Page Info”.

 

Then go to the “Media” tab and copy the link to the flash file, as you can see in the image below:

 

The URL will look something like this:
http://video.google.com/googleplayer.swf?videoUrl=http%3A%2F%2Fvp.video.google.com%2
Fvideoplayback%3Fid%3D25036f0c0ef9bf52%26begin%3D0%26len%3D7160%2
6itag%3D5%26urlcreated%3D1134654406%26docid%3D5651279610882414164%26urlcreated
%3D1134654406%26sigh%3Dj-smBnlHLu4CSvFmXYUrfzgZEn4&autoPlay=true

 

Now that we have the address of the video file, we have to set a flash code and replace “YOUR CODE HERE” with the one we got before:

 

If you want the movie to starts on pause, you have to change the last option of the link from “autoPlay=true” to “autoPlay=

 

I figured out how to make the full screen work

30/12/05

 

So, to make the full screen mode work, you need to add the following code before the </head>:

 

<script src="http://video.google.com/jslib/misc.js" type="text/javascript"></script>
<script src="http://ovelha.org/pasteler0/files/videoplay.js" type="text/javascript"></script>

 

I would advise you to download the videoplay.js and save it in another path because someday I may delete the file. Then you just need to chenge the
<script src="http://ovelha.org/pasteler0/files/videoplay.js" type="text/javascript"></script>
with the new path.

 

Now here you can see a sample video of “Ultra-OverClocking your CPU with Liquid Nitrogen”, from tomshardware.com

And, please DIGG IT! 🙂

 

 

50 thoughts on “HowTo: Google Videos on your website”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.