setCaptureVolume method

Future<void> setCaptureVolume(
  1. int volume
)

Sets the audio recording volume for stream publishing.

Available since: 1.13.0 Description: This function is used to perform gain processing based on the device's collected volume. The local user can control the sound level of the audio stream sent to the remote end. Default value: Default is 100. When to call: After creating the engine createEngine. Restrictions: The capture volume can be dynamically set during publishing. Related APIs: Set the playing stream volume setPlayVolume.

  • volume The volume gain percentage, the range is 0 ~ 200, and the default value is 100, which means 100% of the original collection volume of the device.

Implementation

Future<void> setCaptureVolume(int volume) async {
  return await ZegoExpressImpl.instance.setCaptureVolume(volume);
}