ios - Preventing my app's audio from interfering with other background music -


i think i'm looking combination of existing settings can't quite put in right order. have app plays sound clips using avaudioplayer. there start/stop button.

i other apps' audio continue until app needs play something.

when app launched itunes music playing, music continues correctly. when press play in app, other audio correctly stops, , app plays. stop player, switch music app, , press play again. when switch own app, music stops immediately.

i again wait until needs play before killing music app.

my best guess once i've used player, in kind of 'i need audio' state, , remains in state. how resign state?


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -