release

open fun release()

Release the player and the MediaSession. The mediaSession is set to null after this call

called automatically in onDestroy and onTaskRemoved is releaseOnTaskRemoved = true