ios_setAudioCaptureDeviceVolume method
@platform ios
@detail api
@author dixing
@brief Set the current audio capture device volume
@param volume Audio capture device volume. The range is 0,255.
- 0,25: nearly silent;
- 25,75: low volume;
- 76,204: medium volume;
- 205,255: high volume.
@return Method call result
- 0: Success. The volume information returned by rtcEngine:onLocalAudioPropertiesReport:{@link #ByteRTCEngineDelegate#rtcEngine:onLocalAudioPropertiesReport} will be changed according to this value.
- < 0: failure
Implementation
Future<int?> ios_setAudioCaptureDeviceVolume(int volume) async {
$() => ($instance as $p_i.ByteRTCAudioDeviceManager)
.setAudioCaptureDeviceVolume(volume);
if (Platform.isIOS) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}