Class LocalAudioTrack

    • Method Detail

      • setPreferredDevice

        public void setPreferredDevice​(android.media.AudioDeviceInfo audioDevice)
        Sets the preferred audio device to use as input for this track. Using this method you could control which microphone is in use. You can enumerate the microphones from AudioManager (via getMicrophones) then after the microphone is selected get the appropriate AudioDeviceInfo matching the ID to that of the desired microphone.
        Parameters:
        audioDevice -