Youtube API - 如何使用 VB.Net 在一个请求中检索多个视频?
这个问题一直困扰着我,我想做的是在一个请求中从 YouTube 检索多个视频。现在这些视频不属于播放列表,我只想指定随机视频 ID 并使用指定的视频 ID 向 YouTube 请求提要。
我听说过并研究过 YouTube 的批处理,但我找不到任何资源来解释如何在 VB.Net 中创建批处理来检索视频。
我已经看到一些 flash 和 PHP 代码可以回答这个问题,但我需要 VB.Net 应用程序的功能。
有人可以帮忙吗?
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
发送如下所示的 api 请求:
如果您在请求中包含多个条目,您将收到多个视频信息。
Send an api request that looks like this:
If you include multiple entries in the request, you'll get back multiple video info.
这是互联网 101:一个 http 请求总是产生一个 http 响应。如果您想要多个视频,则必须发送多个请求。您可以通过循环甚至并行运行请求来向用户隐藏这一点,并且仅在所有请求完成后才显示结果。
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.