useAudioOutputDevice method

Future<void> useAudioOutputDevice(
  1. int viewID,
  2. String deviceID
)

Switch the audio output device.

When to call: after using getAudioDeviceList to get the list of audio output devices. Caution: Only for Web.

  • viewID The viewID obtained from the createCanvasView callback function.
  • deviceID Audio output device ID.

Implementation

Future<void> useAudioOutputDevice(int viewID, String deviceID) async {
  return await ZegoExpressImpl.instance
      .useAudioOutputDevice(viewID, deviceID);
}