private void Init() { if (m_IsInit) { return; } if (RecordConfig == null) { NRDebugger.LogError("RecordConfig is null!!!!!"); } BlendMode = RecordConfig.BlendMode; var config = RecordConfig.ToNativeConfig(); if (!Directory.Exists(config.outPutPath)) { Directory.CreateDirectory(config.outPutPath); } NRDebugger.LogError(config.ToString()); Encoder = new NREncoder(config); CameraInput = new CameraInput(Encoder, CaptureCamera, BlendMode, false); RGBTexture = new NRRGBCamTexture(); PreviewScreen.SetData(RGBTexture.GetTexture(), false); PreviewScreen.gameObject.SetActive(false); RGBTexture.OnUpdate += OnFrame; m_IsInit = true; }
private IEnumerator LoadVideoList() { string path = NRealTool.GetNrealResPath() + "/MultiScreenVideoList/MultiScreenVideoConfig.xml"; WWW www = new WWW(path); yield return(www); if (www.isDone && string.IsNullOrEmpty(www.error)) { videoConfig = XmlSerializeHelper.DeSerialize <VideoConfig>(www.text); CreateVideoItems(); www.Dispose(); www = null; } else { NRDebugger.LogError(www.error); } }
private void OnNetConnectError() { NetState = ConnectState.Error; NRDebugger.LogError("OnNetConnectError"); }