setAudioPlaybackDevice method

FutureOr<int> setAudioPlaybackDevice(
  1. NSString deviceID
)

@detail api @author dixing @brief Sets the audio playback device. @param deviceID Device ID. You can get the ID by calling EnumerateAudioPlaybackDevices{@link #ByteRTCAudioDeviceManager#EnumerateAudioPlaybackDevices}. @return - 0: Success - < 0: Failure @note After you call followSystemPlaybackDevice:{@link #ByteRTCAudioDeviceManager#followSystemPlaybackDevice} to set the audio playback device to follow the system setting, you cannot call this API to set the audio playback device.

Implementation

FutureOr<int> setAudioPlaybackDevice(NSString deviceID) async {
  return await nativeCall('setAudioPlaybackDevice:', [deviceID]);
}