在 iPhone 中自动播放下一首歌曲

发布于 2024-09-25 11:55:44 字数 86 浏览 0 评论 0原文

我成功获取后台进程。但问题是,当 AVAudio 播放器完成时,它不会自动播放下一首歌曲。但在模拟器中它会工作得很好。仅在设备中存在问题。有谁练出来了吗???

I got the background Process successfully. But the problem was when AVAudio player get finished it won't play automatically next song. But In Simulator it will work fine. In device only the Problem. Any one worked Out???

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

写下不归期 2024-10-02 11:55:44

我们要激活远程控制系统,那么只有歌曲列表会自动播放。

[[UIApplication sharedApplication] beginReceivingRemoteControlEvents];

在 viewdidload 方法中使用这一行...

我没有在基于窗口的应用程序中进行测试!请尝试回复我!

we want to activate the Remote Control system,then only the song list will play automatically.

[[UIApplication sharedApplication] beginReceivingRemoteControlEvents];

use this line in viewdidload method....

I did't test in window based application!!! Just try and reply me!!!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文