private void OnDisable() { mediaPlayer.OnDisable(); mediaPlayer.prepareCompleted -= OnPrepareCompleted; mediaPlayer.started -= OnStarted; mediaPlayer.firstFrameReady -= OnFirstFrameReady; mediaPlayer.loopPointReached -= OnLoopPointReached; }