开发者

iOS multitasking : let a stream play when the app is in the tray

Does anyone knows how I can let an audio stream play (from a webview ou in a AVPlayer component) after the app lose focus (when the home button is pushed) ? In iOS 4.2. I know I must read about multitasking but if you could just point out a few things for that开发者_如何学Python particular case, that would be great. Exactly the same behavior as if you click a stream link and it's open in Safari. You have to shutdown the application in the multitask tray to end it.

Like if you want to listen to a radio station while working in another app.

Thanks !


Check out the documentation on background processes on iOS, specifically the requirements for playing background audio: iOS Background Programming Guide

The associated audio programming guide will probably guide you through any specifics needed to properly implement your audio stream: Audio Session Programming Guide

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜