followSystemLoopbackDevice abstract method

Future<void> followSystemLoopbackDevice(
  1. bool enable
)

Sets whether the loopback recording device follows the system default playback device.

This method is applicable to Windows and macOS only.

  • enable Whether to follow the system default playback device: true : Follow. When the system default playback device changes, the SDK immediately switches the loopback recording device. false : Do not follow. The SDK switches to the system default playback device only when the current loopback recording device is removed.

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. See Error Codes for details and resolution suggestions.

Implementation

Future<void> followSystemLoopbackDevice(bool enable);