destroyPlayer

abstract fun destroyPlayer()

Destroys the current player and releases it from memory. This helps to manage working with the complex state machines that are the MediaPlayer and the SurfaceView

See also

android.media.MediaPlayer
android.view.SurfaceView