destroyCustomAudioSource method

Future<void> destroyCustomAudioSource(
  1. ZegoCustomAudioSource source
)

Destroy custom audio source instance.

Available since: 3.25.0 Description: Destroy custom audio source instance. Use cases: Typically used to destroy a custom audio mix source instance. When to call: After the engine is created createEngine. Restrictions: None. Caution: ZegoCustomAudioSource can only be used as a mix source, not as the main capture source.

  • source Custom audio source instance.

Implementation

Future<void> destroyCustomAudioSource(ZegoCustomAudioSource source) async {
  return await ZegoExpressImpl.instance.destroyCustomAudioSource(source);
}