播放音乐背景 [英] Play music in background

查看:475
本文介绍了播放音乐背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序来播放音乐,我可以做。但问题是我如何能继续播放音乐,即使应用程序是不是在前台。该musiv只能停在用户选择停止按钮,或暂停了。

I want to play music in my app, that i can do. But the problem is how can i continue playing music even if the app is not in foreground. The musiv should stop only when the user select stop button, or pauses it.

谢谢,

任何帮助将是最AP preciated。

Any help will be most appreciated.

推荐答案

您应该使用服务来播放音乐。参阅这个

You should use service to play music. Refer to this.

这篇关于播放音乐背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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