useAudioDevice method

Future<void> useAudioDevice(
  1. ZegoAudioDeviceType deviceType,
  2. String deviceID
)

Chooses to use the specified audio device.

Available since: 1.1.0 Description: Chooses to use the specified audio device. When to call: After creating the engine createEngine. Restrictions: Only supports Windows / macOS / Linux

Implementation

Future<void> useAudioDevice(
    ZegoAudioDeviceType deviceType, String deviceID) async {
  return await ZegoExpressImpl.instance.useAudioDevice(deviceType, deviceID);
}