enableAudioCaptureWithConfig abstract method

Future<void> enableAudioCaptureWithConfig(
  1. bool enable,
  2. {ZegoScreenCaptureAudioConfig? config}
)

Set whether to collect sound

Available since: 3.23.0 Description: Set whether to collect sound. When to call: At any time, it takes effect after starting screen capture. setAudioSource Set the acquisition source to ZegoAudioSourceTypeScreenCapture, and the screen acquisition and streaming channels are the same. Restrictions: Only applicable to Windows 8 and above versions.

  • enable Whether to collect sound. true for collection, false for no collection, default false.
  • config Audio collection parameters.

Implementation

Future<void> enableAudioCaptureWithConfig(bool enable,
    {ZegoScreenCaptureAudioConfig? config});