video - GData Youtube : obtaining thumbnails -


i have bunch of youtube videoids (the alfanumeric string in param watch/v=? of youtube.com url) , have obtain thumbnails each video;

now, each videoid make http request following:

http://gdata.youtube.com/feeds/api/videos/videoid?v=2&alt=json (s/videoid/actualvideoid/)

and parse/play around json returned; approach quite expensive in terms of performance (everything running on mobile device): there way make single http connection (maybe posting videoids, instead of getting them)...

thanks giupo

apparently "q" parameter can work multiple video id's. example:

https://gdata.youtube.com/feeds/api/videos?q="7mse-iy_tfy"|"qybufny7y8w"|"svc2xlpfw1g"&alt=json&fields=entry/id,entry/media:group/media:thumbnail 

however note result can give videos because 1 of you're requested id's in video's metadata. need filter results down original id list.

alternatively looks might able use "batch request".


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -