@Override
    public void reset() {
        stayAwake(false);
        _reset();
        // make sure none of the listeners get called anymore
        mEventHandler.removeCallbacksAndMessages(null);

        mVideoWidth = 0;
        mVideoHeight = 0;
    }
Releases resources associated with this IjkMediaPlayer object. It is
considered good practice to call this method when you're done using the
IjkMediaPlayer. In particular, whenever an Activity of an application is
paused (its onPause() method is called), or stopped (its onStop() method
is called), this method should be invoked to release the IjkMediaPlayer
object, unless the application has a special need to keep the object
around. In addition to unnecessary resources (such as memory and
instances of codecs) being held, failure to call this method immediately
if a IjkMediaPlayer object is no longer needed may also lead to
continuous battery consumption for mobile devices, and playback failure
for other applications if no multiple instances of the same codec are
supported on a device. Even if multiple instances of the same codec are
supported, some performance degradation may be expected when unnecessary
multiple instances are used at the same time.
dkplayer-players/ijk/src/main/java/tv/danmaku/ijk/media/player/IjkMediaPlayer.java