如何在 android 后台播放 YouTube 视频? [英] How to play YouTube videos in background in android?

查看:59
本文介绍了如何在 android 后台播放 YouTube 视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名初学者,正在开发一个 android 项目,在该项目中我使用 Google YouTube 数据 API 播放 youtube 视频.即使在用户切换到另一个应用程序或按下主页按钮后,是否可以在后台播放视频?是否可以将音频与视频分离并在后台流式传输?我不想使用网络视图.

I'm a beginner and I’m working on an android project in which I play youtube videos using Google YouTube data API. Is it possible to play the video in the background even after the user has switched to another app or pressed the home button? Is it possible to separate the audio from the video and stream that in the background? I don't want to use web view.

推荐答案

可以在后台播放音频.但是,您不能这样做.

It is possible to play the audio in the background. However , you are not allowed to do so.

这种违反 Youtube API 的行为导致立即从 Play 商店中删除.

This violation of the Youtube API is cause for immidiate removal from the play store.

官方回答:

在审核过程中,我们发现您的应用违反了内容政策的禁止行为规定.

During review, we found that your app violates the Prohibited Actions provision of the Content Policy.

我们已确定您的应用允许后台播放 YouTube 视频,这违反了 YouTube API 服务条款:您的 API 客户端不会,也不会鼓励或为您的用户或其他第三方创建以下功能:(8) 分离、隔离或修改通过 YouTube API 提供的任何 YouTube 视听内容的音频或视频组件;"

We have determined that your app enables background playing of YouTube videos, which is a violation of the YouTube API Terms of Service: "Your API Client will not, and You will not encourage or create functionality for Your users or other third parties to: (8) separate, isolate, or modify the audio or video components of any YouTube audiovisual content made available through the YouTube API;"

这篇关于如何在 android 后台播放 YouTube 视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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