I'm using Intel INDE for video streaming purposes (Android).
The main problem is how to mute/unmute the devices microphone in Android.
The only way I found is to not set the AudioFormatAndroid of Intel INDE API deleting these lines:
audioFormat = new AudioFormatAndroid("audio/mp4a-latm", 44100, 1); capture.setTargetAudioFormat(audioFormat);
The problem is that I need to do it during the streaming, not before.
Therefore I tried to manage microphone input settings like:
AudioManager amanager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); amanager.setStreamMute(AudioManager.STREAM_NOTIFICATION, isMuteON); amanager.setStreamMute(AudioManager.STREAM_ALARM, isMuteON); amanager.setStreamMute(AudioManager.STREAM_MUSIC, isMuteON); amanager.setStreamMute(AudioManager.STREAM_RING, isMuteON);
It did not work, so i tried to change Stream Volume, doing this:
amanager.setStreamVolume(AudioManager.STREAM_SYSTEM, 0, AudioManager.FLAG_SHOW_UI);
It shows a Toast stating that I muted the volume, but the audio stream is still active on my streaming.
Can anyone help with this issue? Is it possible to mute the audio input of a video streaming using Intel INDE?