onDestroy

open fun onDestroy()

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