followSystemPlaybackDevice abstract method
Sets whether the audio playback device used by the SDK follows the system default playback device.
This method is applicable to Windows and macOS only.
enableWhether to follow the system default audio playback device: true : Follow. When the system default playback device changes, the SDK immediately switches the audio playback device. false : Do not follow. The SDK switches to the system default playback device only when the current audio playback 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> followSystemPlaybackDevice(bool enable);