Closed (fixed)
Project:
Video CCK
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2007 at 23:24 UTC
Updated:
2 May 2007 at 20:30 UTC
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
Comment #1
aaron commentedalso for myspace
Comment #2
teamrob commentedHeres 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...
Comment #3
aaron commentedthanks 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&contentid=a474fe9a3b2b9475&offsetms=160000&itag=w320&lang=en&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
Comment #4
aaron commentedah, whoops, it's the &
Comment #5
aaron commentedthumbnail support added for google now...
Comment #6
teamrob commentedAwesome 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
Comment #7
aaron commentedi 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
Comment #8
teamrob commentedI 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
Comment #9
aaron commentedthe 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!
Comment #10
teamrob commentedYa 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.
Comment #11
(not verified) commented