-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iosrtc.enumerateDevices()
call causes AVAudioSession to reset to its default settings
#438
Comments
@soulfly thank you, I will look into it. |
hthetiot
added a commit
that referenced
this issue
Nov 5, 2019
…tAllAudioDevices causing AVAudioSession to reset to its default settings #438
I can confirm it works this way |
@soulfly Released on #425 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Today I fought with a strange issue
By some reason, after upgraded to iOS 13 plugin version support, a switch audio output option stopped working in our app. Every time a user switches to speakerphone, it works ok, but only for some short period of time, then the audio output returns to earpiece.
After deep debugging, I noticed that every call to
iosrtc.enumerateDevices()
resets the audio session settings to default one.The chain is the following:
I think it should not be here and this one call in
pluginInitialize
to set default audio session settings should be enough https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/src/iosrtcPlugin.swift#L52Otherwise it can produce unexpected things in users' apps
Platform information
Cordova version:
8.1.2
Plugin version:
latest master
iOS version:
13.2
Xcode version:
11.2
The text was updated successfully, but these errors were encountered: