destroyCustomVideoTrack abstract method
Destroys the specified video track.
videoTrackId
The video track ID returned by calling the createCustomVideoTrack method.
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> destroyCustomVideoTrack(int videoTrackId);