destroyAudioEffectPlayer method

Future<void> destroyAudioEffectPlayer(
  1. ZegoAudioEffectPlayer audioEffectPlayer
)

Destroys a audio effect player instance.

Available since: 1.16.0 Description: Destroys the specified audio effect player instance. When to call: It can be called after createAudioEffectPlayer. Restrictions: None. Related APIs: createAudioEffectPlayer.

  • audioEffectPlayer The audio effect player instance object to be destroyed.

Implementation

Future<void> destroyAudioEffectPlayer(
    ZegoAudioEffectPlayer audioEffectPlayer) async {
  return await ZegoExpressImpl.instance
      .destroyAudioEffectPlayer(audioEffectPlayer);
}