setCaptureVolume method

FutureOr<int> setCaptureVolume(
  1. int volume
)

@detail api @author huangshouqin @brief Adjusts the audio capture volume. @param volume Ratio of capture volume to original volume. Ranging: 0,400. Unit: %
- 0: Mute - 100: Original volume. To ensure the audio quality, we recommend 0, 100. - 400: Four times the original volume with signal-clipping protection. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note Call this API to set the volume of the audio capture before or during the audio capture.

Implementation

FutureOr<int> setCaptureVolume(int volume) async {
  return await nativeCall('setCaptureVolume:', [volume]);
}