setCaptureVolume abstract method

Future<int?> setCaptureVolume({
  1. StreamIndex index = StreamIndex.main,
  2. required int volume,
})

Adjusts the audio capture volume.

volume: Ratio(%) of capture volume to original volume with a range of [0, 400].
This changes the volume property of the audio data other than the hardware volume.
For better call quality, it is recommended to set the volume value to [0,100].

  • 0: Mute.
  • 100: Original volume.
  • 400: Four times the original volume with signal-clipping protection.

Return value:

Notes:

  • You can call this method to adjust both the audio stream captured by the microphone, and the audio stream from the screen sharing.
  • You can call this method both before and after starting audio capturing.

Implementation

Future<int?> setCaptureVolume({
  StreamIndex index = StreamIndex.main,
  required int volume,
});