getHMSAudioDeviceFromName static method
Implementation
static HMSAudioMixingMode getHMSAudioDeviceFromName(String name) {
switch (name) {
case 'TALK_ONLY':
return HMSAudioMixingMode.TALK_ONLY;
case 'TALK_AND_MUSIC':
return HMSAudioMixingMode.TALK_AND_MUSIC;
case 'MUSIC_ONLY':
return HMSAudioMixingMode.MUSIC_ONLY;
default:
return HMSAudioMixingMode.UNKNOWN;
}
}