问题描述
最近我检索录像应与Youtbe V3 API的Android应用程序播放的信息。现在的问题是它们中的一些不移动设备上avaliable。而且我发现根据该文件没有相关性。是否有可能对我来说,过滤掉这些视频?或者我应该加在HTTP请求中的任何头?
Recently I retrieve the information of videos which should be played on the Android apps with Youtbe V3 API. The problem is some of them are not avaliable on the mobile device. And I found no related property according to the document. Is it possible for me to filter out those videos? Or should I add any header within http request?
推荐答案
有两个概念嵌入和银团。iOS设备使用iframe所以他们基本上嵌入。使用播放器API Android设备可以检查辛迪加。
There are two concepts embeddable and syndicated.iOS devices use iframe so they basically embed.Android devices that use player API can check syndicated.
当你做一个搜索 - >列表,您可以设置的和的为true。
When you do a search->list, you can set videoEmbeddable and videoSyndicated to true.
或者,如果你是通过迭代的影片,每部影片,你可以做一个 video->列表与视频ID打电话查询 status.embeddable 的响应。
Or if you are iterating through videos, for each video, you can do a video->list call with video id and check status.embeddable in the response.
下面是一个博客文章这个话题,即使例子是在V2 ,信息仍然是相关的。
Here is a blog post about this topic, even though examples are in v2, information is still relevant.
这篇关于的Youtube V3 API:知道,如果视频是avaliable在Android移动设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!