audioDeviceMode property

ZegoScreenCaptureAudioDeviceMode? audioDeviceMode
getter/setter pair

Set the audio device mode for the specified scene, the default is None. (only for iOS) Notes:

  1. Only works when the audio main source is always a microphone;
  2. Only works for startScreenCapture interface, updateScreenCapture does not take effect;
  3. The audio device mode changes during screen capture may cause the audio output of the screen capture to be abnormal, which can be monitored through onMobileScreenCaptureExceptionOccurred callback, and if necessary, the screen capture needs to be restarted.;
  4. After the screen capture is stopped, the audio device mode before the screen capture will be restored.

Implementation

ZegoScreenCaptureAudioDeviceMode? audioDeviceMode;