onAudioEffectPlayStateUpdate property
void Function(ZegoAudioEffectPlayer audioEffectPlayer, int audioEffectID, ZegoAudioEffectPlayState state, int errorCode)?
onAudioEffectPlayStateUpdate
getter/setter pair
Audio effect playback state callback.
Available since: 1.16.0 Description: This callback is triggered when the playback state of a audio effect of the audio effect player changes. Trigger: This callback is triggered when the playback status of the audio effect changes. Restrictions: None.
audioEffectPlayerAudio effect player instance that triggers this callback.audioEffectIDThe ID of the audio effect resource that triggered this callback.stateThe playback state of the audio effect.errorCodeError code, please refer to the error codes document https://docs.zegocloud.com/en/5548.html for details.
Implementation
static void Function(
ZegoAudioEffectPlayer audioEffectPlayer,
int audioEffectID,
ZegoAudioEffectPlayState state,
int errorCode)? onAudioEffectPlayStateUpdate;