• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Adding Permission MODIFY_AUDIO_SETTINGS to get microphone input in webrtc app, makes speaker output

Hello,

I really need some help since I can't find any info on why this is happening and I've been struggling for days.....

I'm building an webRTC app in android using Cordova and sipml5, and everything is working fine besides that the audio input is coming out of the speaker and I don't know why.

Basically in order to get the audio input I need to put in AndroidManifest.xml the following permission, or it doesn't capture any audio from the microphone:

<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

But when I put this permission the audio input from microphone is coming out of the phone speaker, I don't know why... It is sent correctly to the sip server everything is fine but I just don't want to hear myself from the speakers talking to the phone.

Anyone has any idea how can I change this or why is it happening?


Thanks a lot in advance!!
 
Back
Top Bottom