enableCustomAudioRemoteProcessing method
- bool enable,
- ZegoCustomAudioProcessConfig config
Enable custom audio processing for remote playing stream.
Available since: 1.13.0
Description: Enable remote streaming custom audio processing, developers can receive remote streaming audio frames through onProcessRemoteAudioData, and can modify the audio data.
Use cases: If the developer wants to implement special functions (such as voice change, bel canto, etc.) through custom processing before pulling the remote audio data for rendering.
When to call: It needs to be called before startPublishingStream
, startPlayingStream
, startPreview
, createMediaPlayer
, createAudioEffectPlayer
and createRealTimeSequentialDataManager
to be effective.
Restrictions: None.
enable
Whether to enable custom audio processing for remote playing stream.config
Custom audio processing configuration.
Implementation
Future<void> enableCustomAudioRemoteProcessing(
bool enable, ZegoCustomAudioProcessConfig config) async {
return await ZegoExpressImpl.instance
.enableCustomAudioRemoteProcessing(enable, config);
}