enableLoopbackRecording abstract method

Future<void> enableLoopbackRecording(
  1. bool enabled, {
  2. String? deviceName,
})

Enables loopback audio capturing. If you enable loopback audio capturing, the output of the sound card is mixed into the audio stream sent to the other end. This method applies to macOS and Windows only. The default sound card on the macOS system does not support loopback audio capture. To enable this capture, you need to enable a virtual sound card and pass the name of the virtual sound card in the deviceName parameter. Agora recommends that you use AgoraALD (Agora Audio Loopback Device) and pass in "AgoraALD". You can call this method either before or after joining a channel.

Param enabled Sets whether to enable loopback capturing. true: Enable loopback audio capturing. false: (Default) Disable loopback capturing.

Param deviceName The device name of the sound card. The default is set to nil, which means the SDK uses the current sound card to capture. If you are using a virtual sound card, such as AgoraALD (Agora Audio Loopback Device), set this parameter as the name of the sound card ("AgoraALD").

Implementation

Future<void> enableLoopbackRecording(bool enabled, {String? deviceName});