followSystemPlaybackDevice abstract method

Future<void> followSystemPlaybackDevice(
  1. bool enable
)

Sets the audio playback device used by the SDK to follow the system default audio playback device.

This method is for Windows and macOS only.

  • enable Whether to follow the system default audio playback device: true : Follow the system default audio playback device. The SDK immediately switches the audio playback device when the system default audio playback device changes. false : Do not follow the system default audio playback device. The SDK switches the audio playback device to the system default audio playback device only when the currently used audio playback device is disconnected.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> followSystemPlaybackDevice(bool enable);