Question

This question has been killing me, what i want to do is retrieve more than one video from YouTube in one request. now these videos do not belong to a playlist i just want to specify random video ids and request the feed from YouTube using the video ids specified.

I have heard and looked into batch processing with YouTube but i can not find any resource that gives any explanation on how to create batch processing in VB.Net for retrieving videos.

I have seen some flash and PHP code that can answer this question but i need the functionality for VB.Net application.

Can anyone help please?

Thank you

Was it helpful?

Solution

Send an api request that looks like this:

<feed>
<batch:operation type="query"/>
<entry>
  <id>http://gdata.youtube.com/feeds/api/videos/123</id>
</entry>
<entry>
  <id>http://gdata.youtube.com/feeds/api/videos/456</id>
</entry>
</feed>

If you include multiple entries in the request, you'll get back multiple video info.

OTHER TIPS

Always two there are; no more, no less. A request and a response.

This is internet 101: one http request always yields one http response. If you want more than one video, you must send more than one request. You can hide this from your users by running the requests in a loop or even in parallel, and only showing results after all have completed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top