iOS Question Crash when "setaudiosession" and the user is listening a music

Humberto

Active Member
Licensed User
Longtime User
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)"
 

Humberto

Active Member
Licensed User
Longtime User
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
Top