コード例 #1
0
ファイル: BaseOCX.cs プロジェクト: jackshenbin/IVXClientV3.2
        public string Clear()
        {
            try
            {
                MyLog4Net.Container.Instance.Log.DebugWithDebugView("BaseOCX Clear");
                if (m_videoExport != null)
                {
                    m_videoExport.UnInit();
                }
                IVX.Live.MainForm.Framework.Environment.VODPlayControler = null;
                ocx_VodSdk_UnInit();
            }
            catch (SDKCallException ex)
            {
                MyLog4Net.Container.Instance.Log.DebugWithDebugView("BaseOCX Clear error:" + ex.ToString());

                return(MakeRetMsg(LVErrorType.Err_Clear, "清理出错"));
            }
            exit = false;
            new System.Threading.Thread(sleep).Start();
            while (!exit)
            {
                System.Threading.Thread.Sleep(20);
            }
            MyLog4Net.Container.Instance.Log.DebugWithDebugView("BaseOCX Clear No_Error");
            return(MakeRetMsg(LVErrorType.No_Error, ""));
        }
コード例 #2
0
ファイル: VODOCX.cs プロジェクト: jackshenbin/IVXClientV3.2
        public string Clear()
        {
            try
            {
                MyLog4Net.Container.Instance.Log.DebugWithDebugView("VODOCX Clear");

                //IVX.Live.Crowd.Framework.Container.Instance.LogOut();
                if (panelEx1.Controls.Count > 0)
                {
                    IVX.Live.MainForm.View.ucPlayHistory vod = panelEx1.Controls[0] as IVX.Live.MainForm.View.ucPlayHistory;
                    if (vod != null)
                    {
                        vod.Clear();
                        this.panelEx1.Controls.Clear();
                    }
                    m_videoExport.UnInit();
                }
                IVX.Live.MainForm.Framework.Environment.VODPlayControler = null;
                ocx_VodSdk_UnInit();
            }
            catch (SDKCallException ex)
            {
                MyLog4Net.Container.Instance.Log.DebugWithDebugView("VODOCX Clear error:" + ex.ToString());

                m_isLogin = false;
                return(MakeRetMsg(LVErrorType.Err_Clear, "清理出错"));
            }
            exit = false;
            new System.Threading.Thread(sleep).Start();
            while (!exit)
            {
                System.Threading.Thread.Sleep(20);
            }
            MyLog4Net.Container.Instance.Log.DebugWithDebugView("VODOCX Clear No_Error");
            return(MakeRetMsg(LVErrorType.No_Error, ""));
        }