Replies: 1 comment
-
#767 solve this, was released via 8.0.4 to iosrtc.setDefaultAudioOutput method. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Short version:
I would like to set up which output device (earpiece or speaker) should be used. I want to set it up before making connection. I tried two methods
selectAudioOutput
andturnOnSpeaker
. But at the beginning earpiece is always used. After audio connection is established I can switch between them usingselectAudioOutput
method.Longer version:
I work on voice application. User can call to other user by clicking button. Establishing webrtc audio connection takes some time and sound file is playing during that process. There is additional button to switch audio output between earpiece and speaker. It is possible to switch audio output even during making connection - audio from sound file change output accordingly.
And here is problem because audio from webrtc starts playing always on earpiece. Executing
cordova.plugins.iosrtc.selectAudioOutput('speaker')
has effect only on active audio stream.Beta Was this translation helpful? Give feedback.
All reactions