如何将音乐播放器添加到我的应用程序? [英] How to add a music player to my app?

查看:334
本文介绍了如何将音乐播放器添加到我的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,有一天我建立了一个网站,现在通过webview和YouTube Api,我可以在手机上听音乐了.

So I made a website someday, and now via webview and the YouTube Api I made it possible to listen to the music on my phone.

但是...一旦我关闭我的应用程序,它就会停止播放音乐.在手机进入待机模式后,如何添加音乐播放器并使之继续播放?

But... as soon as I close my app it stops playing the music. How can I possibly add a music player and make it so the music keeps playing after the phone goes on standby mode?

非常感谢!

推荐答案

即使以为我还没有使用Android的Youtube API,但我认为您尝试做的事情是不可能的.手机进入待机模式后,即使YouTube应用程序也无法继续播放音乐.那是他们关于在YouTube上播放音乐视频的政策.

Even thought I haven't deal with Youtube API for Android, I think that what you are trying to do is impossible. Even the Youtube App doesn't keep music playing after the phone goes on standby mode. That's their policy about music videos on Youtube.

这篇关于如何将音乐播放器添加到我的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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