// ------------------------------------------- /* * We will apply the movement to the camera */ private void PlayUMP(string _phoneNumber) { #if ENABLE_STREAMING if (m_ump == null) { m_ump = GameObject.FindObjectOfType <UniversalMediaPlayer>(); m_ump.RenderingObjects = new GameObject[1]; } else { if (m_ump.IsPlaying) { m_ump.Stop(); } } if (m_ump != null) { m_ump.RenderingObjects[0] = m_streamingWindow.gameObject; m_ump.Path = GameConfiguration.URL_RTMP_SERVER_ASSISTANCE + _phoneNumber; m_ump.Prepare(); m_ump.AddPreparedEvent(OnPreparedVideo); } #endif }