react-native-voximplant icon indicating copy to clipboard operation
react-native-voximplant copied to clipboard

Switch to loud speaker issue.

Open ketanb24 opened this issue 2 years ago • 3 comments

I implement video calling function there is an issue when call is connected sound come from ear speaker not from loud speaker anyone can help me to implement this features.

ketanb24 avatar May 02 '22 13:05 ketanb24

Hello @ketanb24 !

You can check realization main piece SDK API in ours React Native Voximplant Demo Projects.

You need to do something like that:

import {Voximplant} from 'react-native-voximplant';

const AudioDeviceManager =
    Voximplant.Hardware.AudioDeviceManager.getInstance();

const selectAudioDevice = async (device: string) => {
    // device equal one of these: 'Earpiece', 'Speaker', 'WiredHeadset', 'Bluetooth'
    await AudioDeviceManager.selectAudioDevice(device);
};

pe1ros avatar May 04 '22 07:05 pe1ros