setAECMode method
- ZegoAECMode mode
Sets the acoustic echo cancellation (AEC) mode.
Available since: 1.1.0
Description: When enableAEC is used to enable echo cancellation, this function can be used to switch between different echo cancellation modes to control the degree of echo cancellation.
Use case: When the default echo cancellation effect does not meet expectations, this function can be used to adjust the echo cancellation mode.
Default value: When this function is not called, the default echo cancellation mode is Aggressive
.
When to call: It needs to be called after createEngine.
Restrictions: The value set by this function is valid only after the echo cancellation function is turned on.
mode
Echo cancellation mode
Implementation
Future<void> setAECMode(ZegoAECMode mode) async {
return await ZegoExpressImpl.instance.setAECMode(mode);
}