destroyMediaPlayer abstract method

Future<void> destroyMediaPlayer(
  1. MediaPlayer mediaPlayer
)

Destroys the media player instance.

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. < 0: Failure.

Implementation

Future<void> destroyMediaPlayer(MediaPlayer mediaPlayer);