How to add a music player to my app?

2019-07-26 23:44发布

问题:

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?

Thank you very much!

回答1:

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.