void OnApplicationPause(bool bPause) { Debug.Log ("ApplicationPause : " +bPause); if(bPause == true) { if( m_CurrentState == MEDIAPLAYER_STATE.PAUSED) { m_bPause = true; } #if (UNITY_IPHONE || UNITY_TVOS) m_iPauseFrame = m_iCurrentSeekPosition; Stop(); #else Call_Pause(); #endif } else { #if ( UNITY_IPHONE || UNITY_TVOS ) m_bStop = false; Call_Play(m_iPauseFrame); #else Call_RePlay (); #endif if( m_bPause == true) { Call_Pause(); m_bPause = false; } } }