Exemple #1
0
        public string CreateVOD(string hostIP, uint hostPort, string videoPath, int startSecond, int endSecond)
        {
            MyLog4Net.Container.Instance.Log.DebugWithDebugView(string.Format("VODOCX CreateVOD hostIP:{0},hostPort:{1},videoPath:{2},startSecond:{3},endSecond:{4}", hostIP, hostPort, videoPath, startSecond, endSecond));

            ocx_VodSdk_Init();
            IVX.Live.MainForm.Framework.Environment.VODPlayControler = this.axvodocx1;

            IVX.Live.MainForm.View.ucPlayHistory vod = new MainForm.View.ucPlayHistory();
            vod.IsPlay4OCX      = true;
            vod.OCX_VideoPath   = videoPath;
            vod.OCX_MssHostIp   = hostIP;
            vod.OCX_MssHostPort = hostPort;
            vod.OCX_TaskName    = " ";
            vod.OCX_StartSecond = startSecond;
            vod.OCX_EndSecond   = endSecond;
            vod.ShowGotoCompare = false;

            vod.PictureSaved4OCX   += brief_PictureSaved4OCX;
            vod.VideoStartSave4OCX += vod_VideoStartSave4OCX;
            this.panelEx1.Controls.Add(vod);
            vod.Dock = DockStyle.Fill;

            m_videoExport = new VideoExport();
            m_videoExport.Init();
            m_videoExport.VideoDownloadProgressUpdate += m_videoExport_VideoDownloadProgressUpdate;
            m_videoExport.VideoDownloadStatusUpdate   += m_videoExport_VideoDownloadStatusUpdate;

            //brief.Task = new TaskInfoV3_1() { TaskId = 100, TaskName = "xxxxxx.mp4", StartTime = new DateTime(), EndTime = new DateTime().AddSeconds(100), };
            MyLog4Net.Container.Instance.Log.DebugWithDebugView("VODOCX Clear No_Error");
            return(MakeRetMsg(LVErrorType.No_Error, ""));
        }
Exemple #2
0
        public string Init()
        {
            MyLog4Net.Container.Instance.Log.DebugWithDebugView("BaseOCX Init");

            ocx_VodSdk_Init();
            IVX.Live.MainForm.Framework.Environment.VODPlayControler = this.axvodocx1;

            m_videoExport = new VideoExport();
            m_videoExport.Init();
            m_videoExport.VideoDownloadProgressUpdate += m_videoExport_VideoDownloadProgressUpdate;
            m_videoExport.VideoDownloadStatusUpdate   += m_videoExport_VideoDownloadStatusUpdate;

            MyLog4Net.Container.Instance.Log.DebugWithDebugView("BaseOCX Init No_Error");
            return(MakeRetMsg(LVErrorType.No_Error, ""));
        }