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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -