onDestroy

abstract fun onDestroy()

Used to stop and release the media (if needed).