enableVolumeEvaluation method
Enables the capture volume prompt
After this is enabled, you can get the SDK's evaluation of the volume value in the V2TXLivePusherListenerType.onMicrophoneVolumeUpdate callback.
Parameter:
intervalMs
determines the trigger interval of the V2TXLivePusherListenerType.onMicrophoneVolumeUpdate callback, the unit is ms, the minimum interval is 100ms, if it is less than or equal to 0, the callback will be disabled, it is recommended to set it to 300ms; Default value: 0, not enabled
Return:
'0' success, more information please see V2TXLiveCode
Implementation
Future<V2TXLiveCode> enableVolumeEvaluation(int intervalMs) async {
var result = await _channel.invokeMethod(
'enableVolumeEvaluation', {"intervalMs": intervalMs,});
return _liveCodeWithResult(result);
}