-
Notifications
You must be signed in to change notification settings - Fork 249
Description
I have an Android smart device with an external USB camera with a microphone connected to it. After integrating the jitsi-meet-sdk, when entering the meeting, the microphone cannot recognize it, but it can recognize the camera, resulting in no sound when speaking. I tried to write a recording function myself. By specifying the microphone source, it can record. The following is the code snippet where I specified the microphone source. May I ask how I can make jitsi-meet-sdk specify the microphone source? Or how can the problem that Jitsi-mee-SDK fails to recognize external microphones be solved? The version of jitsi-meet-sdk is 11.1.0
audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC,
sampleRate,
channelConfig,
audioFormat,
minBufferSize);
if (preferredDevice != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
audioRecord.setPreferredDevice(preferredDevice);
}
audioRecord.startRecording();