getHMSAudioDeviceFromName static method
Implementation
static HMSAudioDevice getHMSAudioDeviceFromName(String name) {
switch (name) {
///front camera is being used
case 'SPEAKER_PHONE':
return HMSAudioDevice.SPEAKER_PHONE;
case 'WIRED_HEADSET':
return HMSAudioDevice.WIRED_HEADSET;
case 'EARPIECE':
return HMSAudioDevice.EARPIECE;
case 'BLUETOOTH':
return HMSAudioDevice.BLUETOOTH;
case 'AUTOMATIC':
return HMSAudioDevice.AUTOMATIC;
default:
return HMSAudioDevice.UNKNOWN;
}
}