destroyCustomAudioTrack

Destroys the specified audio track.

Future<void> destroyCustomAudioTrack(int trackId);

Details

Parameters

trackId
The custom audio track ID returned in createCustomAudioTrack.

Exceptions

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.