Humberto Active Member Licensed User Longtime User Jan 31, 2017 #1 When I try to "set a audio session" and the user is listening a song the progama crach with the message bellow. How can I stop the music then play the sound and re-start the music ? B4X: NativeMe.RunMethod("setAudioSession", Null) Error setting audio session: Error Domain=NSOSStatusErrorDomain Code=560557684 "(null)" Click to expand...
When I try to "set a audio session" and the user is listening a song the progama crach with the message bellow. How can I stop the music then play the sound and re-start the music ? B4X: NativeMe.RunMethod("setAudioSession", Null) Error setting audio session: Error Domain=NSOSStatusErrorDomain Code=560557684 "(null)" Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Feb 1, 2017 #2 See the answer here: http://stackoverflow.com/questions/...after-audio-session-interruption-end/35544795 You need to add: AVAudioSessionCategoryOptionMixWithOthers Upvote 0
See the answer here: http://stackoverflow.com/questions/...after-audio-session-interruption-end/35544795 You need to add: AVAudioSessionCategoryOptionMixWithOthers
Humberto Active Member Licensed User Longtime User Feb 2, 2017 #3 Works If the user is listening with earphones no sound is playing. I need to check if the earphone is connected and send the sound to it. I´ll try to find this routines Thanks Upvote 0
Works If the user is listening with earphones no sound is playing. I need to check if the earphone is connected and send the sound to it. I´ll try to find this routines Thanks