Esempio n. 1
0
        /// <summary>
        /// 摘要播放指定任务单元的视频
        /// </summary>
        /// <param name="taskUnitId">任务单元</param>
        /// <param name="windowHandle">窗口句柄</param>
        /// <param name="dwUserData">用户数据</param>
        /// <returns>-1表示失败,其他值表示返回的摘要播放标示值</returns>
        public int OpenBriefPlay(uint taskUnitId, IntPtr windowHandle, uint dwUserData)
        {
            int nRet = -1;

            TVDASDK_BRIEF_PLAY_INFO ptBriefPlayInfo = new TVDASDK_BRIEF_PLAY_INFO()
            {
                dwVideoTaskUnitID = taskUnitId,
                hPlayWnd          = windowHandle
            };

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, string.Format("IVXSDKProtocol VdaSdk_OpenBriefPlay taskUnitId:{0}"
                                                                                                       + ",windowHandle:{1}"
                                                                                                       , ptBriefPlayInfo.dwVideoTaskUnitID
                                                                                                       , ptBriefPlayInfo.hPlayWnd
                                                                                                       ));

            nRet = IVXSDKProtocol.VdaSdk_OpenBriefPlay(ref ptBriefPlayInfo, m_BriefPlayPosCB, dwUserData);

            if (nRet == -1)
            {
                CheckError();
            }
            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, string.Format("IVXSDKProtocol VdaSdk_OpenBriefPlay ret:{0}"
                                                                                                       , nRet
                                                                                                       ));

            return(nRet);
        }
Esempio n. 2
0
 public static extern int VdaSdk_OpenBriefPlay(ref TVDASDK_BRIEF_PLAY_INFO ptBriefPlayInfo, TfuncBriefPlayPosCB pfuncPlayPos, uint dwUserData);