的Youtube V3 API:知道,如果视频是avaliable在Android移动设备 [英] Youtube V3 API : know if the video is avaliable on Android mobile device

查看:184
本文介绍了的Youtube V3 API:知道,如果视频是avaliable在Android移动设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我检索录像应与Youtbe V3 API的Andr​​oid应用程序播放的信息。现在的问题是它们中的一些不移动设备上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.

当你做一个搜索 - >列表,您可以设置的videoEmbeddable 和的 videoSyndicated 为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移动设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆