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.
所以有一天我创建了一个网站,现在通过webview和YouTube Api,我可以在手机上收听音乐。
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?
但是......一旦我关闭我的应用程序,它就会停止播放音乐。我怎样才能添加音乐播放器并使其在手机进入待机模式后继续播放音乐?
Thank you very much!
非常感谢你!
1 个解决方案
#1
0
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.
即使我认为我没有处理Android的Youtube API,我认为你想要做的事情是不可能的。手机进入待机模式后,即使是Youtube应用程序也无法播放音乐。这是他们关于Youtube音乐视频的政策。
#1
0
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.
即使我认为我没有处理Android的Youtube API,我认为你想要做的事情是不可能的。手机进入待机模式后,即使是Youtube应用程序也无法播放音乐。这是他们关于Youtube音乐视频的政策。