setScreenCaptureVolume method
@detail api
@author wangjunzheng
@brief Adjusts the volume of audio captured during screen sharing.
This method only changes the volume of audio data and does not affect the hardware volume of the local device.
@param volume Ratio(%) of capture volume to original volume, in the range 0, 400, with overflow protection.
To ensure better call quality, we recommend setting the volume to 0, 100.
+ 0: Mute
+ 100: Original volume
+ 400: Four times the original volume with signal-clipping protection
@return
+ 0: Success.
+ <0: Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
@note You can call this method to set the capture volume before or after enabling screen audio capture. Unlike setCaptureVolume:{@link #ByteRTCEngine#setCaptureVolume}, this method only adjusts the audio capture volume during screen sharing.
Implementation
FutureOr<int> setScreenCaptureVolume(int volume) async {
return await nativeCall('setScreenCaptureVolume:', [volume]);
}