I am streaming some audio Multipeer connectivity with iOS 7
framework working well But when I put an app on the background, it stops the work.
Can anyone tell me that this is a frame boundary, or am I doing something wrong?
-
And, if this is a frame boundary, is it possible to do something to avoid doing so?
-
Can I use background work to keep streaming and music working on the background?
-
Is it possible to do this? If not possible, is there any option available for audio streaming between
multifire
iOS devices?
I am using this example :.
Explained on this page :.
Thanks a lot!
(slightly scroll down) some relevant paragraphs:
When the UIBackgroundMode key has an audio value, then the system's media framework automatically prevents the related app from being suspended when moved in the background. This app is running in the background until it is playing audio or video content or recording audio content. However, if the recording or playback stops, the system suspends the app.
You can use any of the system audio frameworks to work with background audio content, and the process is unchanged for the use of those frameworks.
This means that iOS should recognize that you audio through the core audio Are running, and do not dismiss your app, as long as you have properly configured your app to play audio in the background.Because your app is not suspended while running media files, callbacks work normally, while your app is in the background in your callback, however, for you to playback The only necessary work should be to provide the data. For example, a streaming audio app will need to download music stream data from your server and exclude existing audio samples for playback. Apps should not perform any indirect tasks that are not related to playback.
You will normally be able to work until your app is still playing audio, and permission to do it is allowed to continue playing the audio That you should be able to continue using the MPC in the background to get audio data and run it.
Be sure to read the entire document on this topic, especially related to it.
Comments
Post a Comment