This is the code:
private fun pause(){ if (mpp != null){ mpp!!.pause() } } private fun resume() { if (mpp != null) { mpp!!.start()