In order to continue your audio running while the app is in Background mode(like in the case of live Streaming), we just have to add this line in our AppDelegate method application didFinishLaunchingWithOptions:
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];
and update plist , add Required background modes as Array and under it add App plays audio or streams audio/video using AirPlay as String. Now your plist will look like the ScreenShot shown below.
0 Comment(s)