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

 

 

Share/Save/Bookmark

48 Replies

No one has
  1. 1 ben

    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. 2 Pasteler0

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

  3. 3 Vincent

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

  4. 4 Pasteler0

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

  5. 5 Vincent

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

  6. 6 Pasteler0

    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. 7 Vincent

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

  8. 8 Pasteler0

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

  9. 9 Vincent

    Thanks, now its perfect

  10. 10 sndr

    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. 11 anduser

    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. 12 Nina

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

  13. 13 George Burnett

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

  14. 14 tom

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

  15. 15 Maxim

    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. 16 Pasteler0

    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. 17 NxJ NightHawk

    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. 18 NxJ NightHawk

    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. 19 tonuiva

    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. 20 pasteler0

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

  21. 21 Vatican

    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. 22 Pasteler0

    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. 23 Scraggy

    http://javimoya.com/blog/youtube_en.php

    The site above works great for downloading google vids aswell

  24. 24 Andrew

    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.

  25. 25 Pasteler0

    Andrew, thats cool! thanks for helping! =)

  26. 26 P.O.

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

  27. 27 Pasteler0

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

  28. 28 GoogleVid

    http://video.google.com/googleplayer.swf?docId=-3101836263624326712

    How to substract the main video source from this link? It is a real nice clip and I want to download the clip.

  29. 29 Anton

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

  30. 30 Francisco

    I do this :

    http://video.google.es/videoplay?docid=8718728501056290731&q=genre:comedy

    replace with :

    http://video.google.com/googleplayer.swf?docid=8718728501056290731

    I write a script function on the webpage :

    Video picture

    The window size resize the videoplayer and you can watch the video ok.

  31. 31 ramya

    please help me

    how to use in bbcode googlevideo
    my site phpbb pls help

  32. 32 Trinadh Yerra

    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.

  33. 33 Pasteler0

    Trinadh, no problem man! =)

  34. 34 jim

    How do you make the videos autoplay when the browser loads

    jim

  35. 35 jack

    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.

  36. 36 Pasteler0

    jack, what is your page address?

  37. 37 adriana

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

  38. 38 Pasteler0

    adriana, no. =)

  39. 39 seferm

    Good job. The article is very informative.

  40. 40 dlogan

    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.

  41. 41 KillaBee

    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…

  42. 42 tdkr80

    there’s a WAY! better way to get it in full screen i dont exsactly know the code but i do have a generator that allows you to have it in a pop-up window just like youTUBE! the url is:
    http://javascript.internet.com/generators/popup-window.html and set the settings to size: 1030 and resizable and have scrollbars and it’s a you-tube version in full screen!

    MSGMXP team,
    www.classic2.bravehost.com

  43. 43 AltaGid

    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!

  44. 44 Ken

    Wow! Great tip

  1. 1 Technology Hackers In Training » Save Google Video, Videos
  2. 2 lcdesignstudios.com » Blog Archive » Embedding Google Videos
  3. 3 HOW DO I SEND AND EMAIL TO » Autism-How-To.Com
  4. 4 Adding Google videos to your Website | daradesigns blog

Leave a Reply