iphone - How to detect ringer switch state in iOS? -
i configured audio session kaudiosessioncategory_ambientsound app plays music avaudioplayer. problem app plays effects openal. want music play (also in background) openal sound effects if mute switch not muted.
there no documented way of doing it, can try this project. open source project claims can detect if mute switch state changes.
Comments
Post a Comment