useAudioDevice method
- ZegoAudioDeviceType deviceType,
- 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
deviceType
Audio device typedeviceID
ID of a device obtained by getAudioDeviceList
Implementation
Future<void> useAudioDevice(
ZegoAudioDeviceType deviceType, String deviceID) async {
return await ZegoExpressImpl.instance.useAudioDevice(deviceType, deviceID);
}