android - 获取在 Youtube android 应用程序中运行的视频的 URL

标签 android youtube-api youtube-data-api android-youtube-api

我正在尝试为自己开发一个应用程序,它将下载在 Youtube 应用程序中播放的视频的音频版本。我已经想通了几乎所有其他事情,我只想获取在 Youtube 应用程序中播放的视频的 URL。

所以,这个问题可以分为两部分:-

  1. 是否有可能在没有 youtube 任何特别许可的情况下获取视频的 url(不,我不想每次都复制和粘贴视频,而是喜欢通过代码来完成)。 还有其他应用程序在做类似的事情,比如 fairbuy该应用程序会自动向您显示同一产品在其他电子商务网站上的选项。因此,它必须以某种方式跟踪来自父应用的产品 url。

  2. Google 可以阻止我在 Play 商店发布我的应用吗?因为它下载了歌曲的音频版本。我搜索过,但 Play 商店中没有 YouTube 下载器。

提前致谢:)

最佳答案

查询 1 的答案:

,可以获取在官方 YouTube 应用中播放的视频的 url。您正在尝试将您的应用程序与 YouTube 应用程序集成,并且有一种在 android 中实现它的标准方法。您可能会获得该技术的详细信息 here .

此时的问题可能是 YouTube 应用程序是否提供了从其他应用程序获取的 url。这需要内容提供者(here).可以将任何应用程序与另一个应用程序集成,但仅限于父应用程序提供的数据。YouTube 应用程序允许获取当前应用程序的元数据播放视频。

这与 android 而不是 YouTube API 更相关,因为您正在尝试获取有关 YouTube 应用程序当前状态的信息。

查询 2 的答案:

是的,根据 YouTube 的条款和服务,开发此类应用程序是非法的。也就是说,您将不会被允许将您的应用程序发布到 Google PlayStore。引用 YouTube 的条款和服务:

"You shall not download any Content unless you see a “download” or similar link displayed by YouTube on the Service for that Content.You shall not copy, reproduce, make available online or electronically transmit, publish, adapt, distribute, transmit, broadcast, display, sell, license, or otherwise exploit any Content for any other purposes without the prior written consent of YouTube or the respective licensors of the Content. YouTube and its licensors reserve all rights not expressly granted in and to the Service and the Content."

您可以阅读更多关于 YouTube 的条款和服务 here .

为什么还要费心去开发这样的app?

虽然通过这样的应用程序赚取经济利益是违法的,因为它违反了它所依赖的另一个应用程序的条款和服务,但仍然开发这样的应用程序仅供个人使用是合法的.再次引用条款和服务时:

Content is provided to you AS IS. You may access Content for your information and personal use solely as intended through the provided functionality of the Service and as permitted under these Terms of Service. You shall not download any Content unless you see a “download” or similar link displayed by YouTube on the Service for that Content. You shall not copy, reproduce, make available online or electronically transmit, publish, adapt, distribute, transmit, broadcast, display, sell, license, or otherwise exploit any Content for any other purposes without the prior written consent of YouTube or the respective licensors of the Content. YouTube and its licensors reserve all rights not expressly granted in and to the Service and the Content.

此时的争论点可能是:YouTube 是服务提供商还是内容提供商?双方都可能争论不休。

关于android - 获取在 Youtube android 应用程序中运行的视频的 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38070496/

相关文章:

youtube-api - 如何使用 youtube api 检测官方艺术家 channel ?

Android imeOptions 和自动按下登录按钮

android - 软键盘中不显示下一步按钮

android - Kotlin:不能将null强制转换为非null类型com.google.android.youtube.player.YouTubePlayerFragment

youtube - 在Discord Bot中使用YouTube API

php - 使用 PHP 指定 Youtube API 中视频上传的 channel

android - 在客户端和网络之间设计一个 "task"层来组织同步网络/api 调用

java - 仅当 Android 中发生通知时,如何以编程方式更改音频模式?

youtube - 是否可以使用Youtube Api创建自己的YouTube播放列表

youtube - 有什么方法可以避免在搜索结果中获取带有 “sign in to confirm your age”的视频?