英文:
What is the official and legal way of embedding YouTube videos into mobile apps?
问题
我们正在开发一个面向iOS/Android的移动应用。该应用需要展示特定的YouTube视频。理想情况下,为了提供最佳用户体验,我希望能够获得一个移动应用本地视频播放器。
在研究过程中,我发现Android播放器API已被弃用,推荐使用IFrame集成。当我访问IFrame文档时,有一个链接指向一个12年前的Google会议视频。我觉得在过去的十年里一定有一些进展。
我还发现了许多开源项目,这些项目从YouTube API获取视频,然后使用视频URL在本地视频播放器内播放。这可能不合法,但我找不到任何证据来证明或否定这一假设。
因此,截至2023年,IFrame是否仍然是将YouTube视频嵌入移动应用的官方方式?是否有比IFrame更好的选择?
英文:
We are building a mobile app targeting iOS/Android. The app needs to show certain YouTube videos. Ideally, I would love to get a mobile app native video player for the best user experience.
While looking into this, I found that the Android player API is deprecated in favor of IFrame integration. When I visit the IFrame documentation there's a link to a Google conference video that's 12 years old. I feel there must have been some advancements during a decade.
I have also come across many open-source projects that fetch the videos from the YouTube API and use the video URL to play them inside a native video player. This might not be legal, but I couldn't find any reference to prove or deny this assumption.
So, as of 2023, is the IFrame still the official way of embedding YouTube videos into mobile apps? Is there a better option than the IFrame?
答案1
得分: 1
- 如果你查看YouTube服务条款上的“权限和限制”部分,它们明确表示:
> [...] 你不被允许:
访问、复制、下载、分发、传输、广播、展示、销售、授权、更改、修改或以其他方式使用服务或任何内容的任何部分,除非:(a) 由服务明确允许 [...]
规避、禁用、欺诈性参与,或以其他方式干扰服务(或尝试执行其中任何操作),包括与安全相关的功能或阻止或限制内容复制或其他使用的功能 [...]
许多(如果不是全部)非官方方法都会规避/禁用这些限制,所以我认为它们可能不合法。
- 据我所知,Iframe API 文档是最新的,多年来没有特别的改进,这也是嵌入 YouTube 内容的唯一方式(也许 Google 并不特别关心改进第三方服务?)
英文:
- If you check "Permissions and Restrictions" on YouTube terms of service, they clearly say:
>[...] You are not allowed to:
access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service [...]
circumvent, disable, fraudulently engage, or otherwise interfere with the Service (or attempt to do any of these things), including security-related features or features that: (a) prevent or restrict the copying or other use of Content [...]
Many (if not all) non-official methods circumvent / disable many of these bans, so I don't think they are legal.
- As far as I know, the Iframe API documentation is up to date, with no special improvements over the years, and it's the only way to embed YouTube's content (maybe Google is not particularly interested in improving third-party services?)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论