Multipeer audio streaming stops running in the background

I am doing audio streaming with iOS 7 Multipeer Connectivity. Streaming works well, but when I put the application in the background, it stops working.

Can someone tell me if this is a limitation of the framework, or am I doing something wrong?

  • And if this is a limitation of the framework, is there anything you can do to avoid this?

  • Can I use background tasks so that streaming and music work in the background?

  • Is it possible? If this is not possible, are there any alternatives for streaming audio MultiPeerbetween iOS devices ?.

I am using this example: https://github.com/tonyd256/TDAudioStreamer .

Explanation on this page: http://robots.thoughtbot.com/streaming-audio-to-multiple-listeners-via-ios-multipeer-connectivity .

Thanks a lot!

+4
source share
2 answers

In the Apple documentation for playing audio in the background (scroll down a bit). Some relevant points:

UIBackgroundModes , , . - , . , , .

- , .

, iOS , Core Audio, , .

, , . , . , . , .

, , , , . , MPC .

, .

+3

iOS- , .

Apple , :

  • , , , .
  • , .
  • , ,
  • , - (VoIP)
  • , .
  • ,

Apps that play audible content to the user while in the background, such as a music player app. .

+2

Source: https://habr.com/ru/post/1527534/


All Articles