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.
- set required background mode app plays audio
- 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
Post a Comment