objective c - Audio stops on background on simulator (iOS 7.1) -
audio stops when close app. , may start again if open control center (swipe bottom). it's strange.
everything's fine in ios 8 simulator , devices. problem can't install ios 7 on existing devices test bug in app or it's bug in simulator.
uibackgroundmodes
in info.plist contains audio
string object. here how configure session on app start:
- (void)setaudiosession { [[avaudiosession sharedinstance] setcategory:avaudiosessioncategoryplayback error:nil]; [[avaudiosession sharedinstance] setactive:true error:nil]; }
to play audio use avplayer
class.
it's ios 7 simulator bug.
Comments
Post a Comment