HowTo: Google Videos on your website

After I realised that www.downloadgooglevideos.com got shutdown by google, and all the embedded google 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 that easy as before, but it’s working. I’ll try to explain here how to do it. If anyone finds a better way to do it, please, let me know!

 

The old code I showed in this page wasn’t working on IE, so I re-wrote this to a better way to embed google videos on your website. Any problem let me know! :)

 

First you open the page where is the video you want embed at http://video.google.com, then in Firefox you just click on “View Page Info” under the menu of the right-button of the mouse.

 

Then you go to “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 that the movie starts paused, 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 works, 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 advice 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! :)

 

 

46 Responses to “HowTo: Google Videos on your website”


Leave a Reply