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

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -