enableAudioCaptureWithConfig abstract method

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

设置是否采集声音

支持版本:3.23.0 及以上。 详情描述:设置是否采集声音。 调用时机:任意时刻,开始屏幕采集后生效。setAudioSource 设置采集源为 ZegoAudioSourceTypeScreenCapture,并且屏幕采集推流通道相同。 使用限制:只适用于 macOS 10.15 及以上版本和 Windows 8 及以上版本

  • enable 是否采集声音。true 为采集,false 不采集,默认 false。
  • config 音频采集参数。

Implementation

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