destroyCustomAudioTrack abstract method

Future<void> destroyCustomAudioTrack(
  1. int trackId
)

Destroys the specified audio track.

  • trackId The custom audio track ID returned in createCustomAudioTrack.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> destroyCustomAudioTrack(int trackId);