setHandsFree method
Implementation
@override
Future<void> setHandsFree(bool isHandsFree) {
if (isHandsFree) {
return txDeviceManager
.setAudioRoute(TRTCCloudDef.TRTC_AUDIO_ROUTE_SPEAKER);
} else {
return txDeviceManager
.setAudioRoute(TRTCCloudDef.TRTC_AUDIO_ROUTE_EARPIECE);
}
}