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! 🙂

 

 

Comments

  1. bsd

    to find the url, you can open page info under the tools menu- go to the media tab – you can see all info on multimedia files on th page.

  2. Done, the code is working now, just my website that is not working properly on IE. I’ll take a look in the CSS file and make some changes when I’ve time. Let me know if there is anything wrong.

  3. Thanks Man! It works! Another question: How should I hack it if I want that the page shows a specific frame from the movie in the browser? Its great but an interesting image from the clip would be better than a black square.

  4. Hey thanks!! The demo video on your site doesn’t support full screen. When I click on fullscreen it doesn’t work! Is it possible to add it?

  5. MAN, u saved my life. I was trying to figure out how to link a video to my myspace page for the last 2 hours.
    THANK YOU.

  6. sndr: I think there is a limitation of the google’s flash player for that.

    anduser: Just added the information of how to do that. Anything, just say.

    Maxim: I’m happy it helped! 🙂

  7. Just tried the google video code on the bud light magic fridge ad. All i get is a buffering message and NaN:Nan/0:00 in the elapsed time bar

    Here’s what i typed in.

    Any ideas on how to get this to work on Xanga?

  8. hi…

    i’ve been trying to do what you wrote but it turns out blank and the area where it’s suppose to be in is blue… i really like this video and would love to have it on my myspace page…. can you please help me…. i searched for it on video.google.com and i found it… its called chiefislander…a samoan dance done in carson 2005… your help would be great….

    thanks

    tonuiva

  9. thanks alot, il have to try this at home, is there anyway of getting it to work with myspace then ? seeing as the other guy didnt get it to work, i wana stream a video of my band without using that stupid youtube.

  10. The reason it’s not playing in IE, I think, is because it’s just an embed code and not a corresponding object code. Traditionally to ensure cross-browser compatibility, you code:

    [object]
    [params]
    [embed][/embed]
    [/object]

    Obviously there’s much more to it than that, but that’s how I got it to work.

  11. “The video is currently not availible – Please come back later” – is the answer I get (to all videos on this site) – more inventions needed ! 🙂

  12. P.O. Yep, there’s this message for some videos. When I’ve time I’ll take a look at this, but sorry that I’m not updating very much this blog coz this year its very important and I’ve to study alot. When this is all over, I’ll come with many nice stuff! =)

  13. please help? i followed the directions on the top page, but everytime i install it on my site
    i get a white box (screen)
    i cant afford to to buy more web space so if anyone can help me thru this.
    thanks.

  14. Did something change at google? I’m not seeing the link in firefox of the same format as above, now I see a relative URL.

    /player2.swf?hl=en&video_id=blablablabla

    Anyone know how to work around this one? The old links appear to work. Thanks.

  15. please help me i cant seem to get this to work, ive got the proper code from firefox threw the steps you provided above… but when i paste it in my website i get a white square… please help me to figure this out, thank you…

  16. Hello! Help solve the problem.
    Very often try to enter the forum, but says that the password is not correct.
    Regrettably use of remembering. Give like to be?
    Thank you!

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.