enableFollowingDefaultAudioDevice abstract method
- TXMediaDeviceType type,
- bool enable
Set the Audio Device Used by SDK to Follow the System Default Device (for Desktop OS)
This API is used to set the microphone and speaker types. Camera following the system default device is not supported.
- Parameters:
- enable(bool):
- Whether to follow the system default audio device.
true
: Following. When the default audio device of the system is changed or a new audio device is plugged in, the SDK immediately switches the audio device.false
: Not following. When the default audio device of the system is changed or a new audio device is plugged in, the SDK doesn't switch the audio device.
- Whether to follow the system default audio device.
- type(TXMediaDeviceType):
- Device type.
- enable(bool):
Implementation
int enableFollowingDefaultAudioDevice(TXMediaDeviceType type, bool enable);