iphone - IOS: Run application audio and phone music audio together in background -


i need application audio still run though goes background device music audio. try codes suggestion in page application still doesn't work.

enter image description here

  1. set required background mode app plays audio
  2. set application not run in background yes

appdelegate.m

nserror *setcategoryerr = nil; nserror *activationerr  = nil; [[avaudiosession sharedinstance] setcategory: avaudiosessioncategoryplayback error:&setcategoryerr]; [[avaudiosession sharedinstance] setactive:yes error:&activationerr]; 

here can find related question it.

how handle background audio playing while ios device locked or on application?

i suggest take tutorial:

http://mobile.tutsplus.com/tutorials/iphone/ios-sdk_background-audio/

it explains different steps follow.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -