Skip to content

The problem of not being able to recognize the device's microphone #275

@zdfHouse

Description

@zdfHouse

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions