Youtube V3 API : know if the video is avaliable on Android mobile device

前端 未结 1 957
逝去的感伤
逝去的感伤 2020-12-06 15:18

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 devi

相关标签:
1条回答
  • 2020-12-06 15:51

    There are two concepts embeddable and syndicated. iOS devices use iframe so they basically embed. Android devices that use player API can check syndicated.

    When you do a search->list, you can set videoEmbeddable and videoSyndicated to true.

    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.

    Here is a blog post about this topic, even though examples are in v2, information is still relevant.

    0 讨论(0)
提交回复
热议问题