如何将音乐播放器添加到我的应用程序?
因此,有一天我建立了一个网站,现在通过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.