gpt4 book ai didi

android - 使用 Android YouTubePlayer 的 Vevo 内容

转载 作者:行者123 更新时间:2023-11-29 01:20:19 25 4
gpt4 key购买 nike

最近,我一直在尝试使用特殊的 Google 库播放一些 Vevo Justin Bieber 视频 Youtube playback .

为了播放视频文件,它们的 id 是通过 Search API 检索的:

https://www.googleapis.com/youtube/v3/search
?part=snippet
&maxResults=20
&q=ENCODED_JUSTIN_BIEBER_STRING
&type=video
&key=API_KEY

...并排队进入 YouTubePlayer:

player.cueVideo(vevoId);

...当谈到播放 Vevo 的 Justin Bieber 时,YouTubePlayerView 给了我这个消息:

This video contains content from VEVO. its restricted from playback on certain sites.... Watch on Youtube.

这是否意味着 Vevo 的视频内容无法使用 Google 的库播放?

为了完成播放 vevo 视频文件,是否需要采取任何额外的步骤?

提前致谢!

最佳答案

我认为这是由于设备的限制。以下是一些讨论您遇到的相同错误的论坛:Cannot play VEVO videos其中指出

"VEVO appears to have embed restrictions based on device, so they must be checking the user-agent of the web view. Unfortunately I don't believe there's much way around this without spoofing the user-agent, and I don't particularly want to force everyone who uses this library to break the YouTube/VEVO terms of service by bypassing their content embedding restrictions."

Contents from VEVO, SME and UGM cannot be played on certain sites .我希望这会有所帮助。

关于android - 使用 Android YouTubePlayer 的 Vevo 内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37215794/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com