Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Audio Playing while App is in Background Mode

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 287
    Comment on it

    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.


    alt text

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: