private void OnEnable() { mediaPlayer.OnEnable(); mediaPlayer.prepareCompleted += OnPrepareCompleted; mediaPlayer.started += OnStarted; mediaPlayer.firstFrameReady += OnFirstFrameReady; mediaPlayer.loopPointReached += OnLoopPointReached; }
void OnEnable() { if (m_Control != null && m_WasPlayingOnPause) { m_AutoStart = true; m_AutoStartTriggered = false; m_WasPlayingOnPause = false; } if (m_Player != null) { m_Player.OnEnable(); } StartRenderCoroutine(); }