enableFollowingDefaultAudioDevice method

Future<int?> enableFollowingDefaultAudioDevice(
  1. int type,
  2. bool enable
)

Set the audio device used by the SDK to follow the system default device (Support for macOS and Windows platforms)

Only supports setting microphone and speaker types. Camera does not currently support following the system default device.

Parameters:

type Device type. For more information, please see the definition of TXMediaDeviceType.

enable true: enabled; false: disabled.

Implementation

Future<int?> enableFollowingDefaultAudioDevice(int type, bool enable) {
  return _channel.invokeMethod('enableFollowingDefaultAudioDevice', {
    "type": type,
    "enable": enable,
  });
}