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.comAnd, please DIGG IT! 🙂

 

 

50 comments on “HowTo: Google Videos on your website

  1. ben December 14, 2005 10:31 pm

    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. Pasteler0 December 14, 2005 10:48 pm

    Thank Ben, I’ll try other ways to embed this google videos to a home page. 🙂

  3. Vincent December 15, 2005 11:33 am

    It does not seem to work in IE and it receizes my page. But it is a great start!

  4. Pasteler0 December 15, 2005 11:35 am

    Yeah, its not working, I’m re-writing this to a way it works on IE.

  5. Vincent December 15, 2005 12:01 pm

    Great job by the way! I will keep track of your progress.

  6. Pasteler0 December 15, 2005 1:06 pm

    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.

  7. Vincent December 15, 2005 1:46 pm

    Thanks, is it also possible to stop the auto play? [autoplay=true]

  8. Pasteler0 December 15, 2005 2:06 pm

    Done. To the movie starts paused, you have to change the last option of the link from autoPlay=true to autoPlay=. 🙂

  9. Vincent December 15, 2005 2:41 pm

    Thanks, now its perfect

  10. sndr December 16, 2005 9:41 pm

    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.

  11. anduser December 22, 2005 3:10 pm

    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?

  12. Nina December 23, 2005 2:14 pm

    This is awesome! Thank you so much! I was trying everything to embed my video. And Yay! Now I am happy. 🙂

  13. George Burnett December 24, 2005 7:37 pm

    This is very cool and will go to good use im sure.

  14. tom December 25, 2005 1:47 am

    it’s like you have you own t.v. station..cool

  15. Maxim December 30, 2005 12:38 am

    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.

  16. Pasteler0 December 30, 2005 2:57 am

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

  17. NxJ NightHawk February 16, 2006 6:43 pm

    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?

  18. NxJ NightHawk February 16, 2006 6:44 pm

    nuts, can’t type the code.

    Essentially it was the main code with YOUR CODE HERE replaced with the google media object code for Magic Fridge

  19. tonuiva February 23, 2006 6:24 pm

    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

  20. pasteler0 February 23, 2006 10:21 pm

    Tonuiva, this may happend coz of myspace’s sourcecode!

  21. Vatican February 27, 2006 12:38 pm

    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.

  22. Pasteler0 February 27, 2006 3:25 pm

    Vatican, it works, just I’m not sure about MySpace.
    Now in google videos, there is a button “Put on site”, you could try that code!

  23. Andrew March 14, 2006 10:08 pm

    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.

  24. Pasteler0 April 24, 2006 6:13 pm

    Andrew, thats cool! thanks for helping! =)

  25. P.O. May 12, 2006 9:20 pm

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

  26. Pasteler0 May 14, 2006 12:08 pm

    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! =)

  27. Anton September 20, 2006 6:50 am

    Hey, one interesting question – is there a way to Upload a video to google using form on your web-site??

  28. ramya October 5, 2006 10:10 pm

    please help me

    how to use in bbcode googlevideo
    my site phpbb pls help

  29. Trinadh Yerra October 6, 2006 12:27 am

    THANK YOU VERY MUCH MAN. I can’t express how useful it proved to me. Thank you very much once again. Go to page at http://yerra.trinadh.googlepages.com/ and find out how.
    Thank you very much.
    Thank you very much. If any way I can be helpful then contact me.

  30. jim October 18, 2006 1:35 am

    How do you make the videos autoplay when the browser loads

    jim

  31. jack November 27, 2006 6:05 pm

    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.

  32. Pasteler0 November 27, 2006 10:19 pm

    jack, what is your page address?

  33. adriana December 17, 2006 12:26 am

    Is it not prohibited by Google’s copywrite to imbed their videos on our sites?

  34. seferm May 30, 2007 7:19 pm

    Good job. The article is very informative.

  35. dlogan June 6, 2007 12:20 am

    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.

  36. KillaBee June 19, 2007 3:30 pm

    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…

  37. AltaGid August 8, 2007 12:28 pm

    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!

  38. Ken March 3, 2008 4:14 pm

    Wow! Great tip

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

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