ios4 多任务控制 &背景音频功能问题
我对 IOS4 音频/多任务处理很陌生,我找不到这个主题的答案:
有一个非常简单的两部分问题: 什么框架可以与 ipod 框架结合使用?每个人都见过 pandora 应用程序,所以问题是:
- 如何让应用程序通知用户音乐正在播放(通过状态栏中的紫色播放图标)?
- 如何通过多任务控制栏(你知道,锁定方面按钮旁边的控制栏)来控制它?
I'm pretty new to IOS4 audio/multitasking and i cant find an answer on this topic:
Got a, pretty easy, two part question:
What framework works in conjunction with the ipod framework? Everyone's seen the pandora app, so the question is:
- How do you get the app to notify the user that music is playing (via the purple play icon in the status bar)?
- How does this become controllable via the multitasking control bar (ya know, the ones right next to the lock-aspect button)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这都是相同的过程。
当您成功将应用程序与远程播放控件 (remoteControlReceivedWithEvent) 链接时,将添加播放图标。这些控件只是传输到您的远程控制感知应用程序的事件。
据我所知,音频类型并不重要(MPAudioPlayer 在后台不起作用)。
希望对新编码员有帮助:)
It's all the same process.
The play icon is added when you successfully link up your app with the remote play controls (remoteControlReceivedWithEvent). The controls are just events that are channeled to your remote control aware app.
TYPE of audio doesn't matter, as far as i know (MPAudioPlayer doesn't work in the background though).
Hope that helps the newer coders out there :)