need to look up google api. there's got to be one, but i can't find it yet. although i see a reference at ruby on rails, so that might be a lead to follow (or a better search on google)...

Comments

aaron’s picture

also for myspace

teamrob’s picture

Heres are some refernaces for the google thumbnail, I dont think you need any api key, just need to parse the xml file for the thumbs.
Here's some referance parseing towrds the bottom
http://groups.google.ca/group/google-video-advanced/browse_thread/thread...

aaron’s picture

thanks for the link. unfortunately, that doesn't seem to work for me. the returned thumbnail from the xml appears to only work when directly accessed from the feed.

for instance, http://video.google.com/videofeed?docid=2295360340367941531 returns <media:thumbnail url="http://video.google.com/ThumbnailServer2?app=vss&amp;contentid=a474fe9a3b2b9475&amp;offsetms=160000&amp;itag=w320&amp;lang=en&amp;sigh=kYJLrP89pFS1aC4JVJb_zTH7qas" width="320" height="256" />, with a thumbnail supposedly at http://video.google.com/ThumbnailServer2?app=vss&contentid=a474fe9a3b2b9... but that link, when accessed directly, returns a server error.

i've posted a question at google groups at http://groups.google.com/group/google-video-advanced/browse_thread/threa... for this issue as well.

aaron

aaron’s picture

ah, whoops, it's the &

aaron’s picture

Status: Active » Fixed

thumbnail support added for google now...

teamrob’s picture

Awesome works well.

Is there any way to change the thumbnail size? The google thumbs are 4x larger than the youtube ones, looks more consistent if they are the same. Is it hardwired by the service or can this be set somewhere in the code?

cheers

aaron’s picture

i have to investigate this. flickr allows you to retrieve thumbnails at a certain size with their api. youtube has an api, but at first glance, i don't see a way to do that. google hasn't yet opened their api, so there's no way other than the xml to even get thumbnails. hopefully, even if the option isn't yet available, it will be soon. especially if we start bugging their support forums with requests.

i'll investigate things more when i get back (i'm out of town this week).

aaron

teamrob’s picture

I had a quick look around and dont think the api can do this, maybe the image module can be used with this to scale the thumbs, heres an interesting post,
http://www.kevinbridges.org/node/89

aaron’s picture

the problem i see with that solution is that imagecache requires (as far as i know) for the image to be in the filesystem, whereas the thumbnails returned are stored on google's servers. perhaps there's a way we could copy the images to our filesystem or otherwise modify them -- i need to investigate that more.

thanks for the help!

teamrob’s picture

Ya it seems like that would be the only solution. The good side of it would be consistancy of the image size no matter what service you use or might be added in the future, and having thumb doesnt take up much space.

Anonymous’s picture

Status: Fixed » Closed (fixed)