Exemplo n.º 1
0
        /// <summary>
        /// 设置摘要播放参数
        /// </summary>
        /// <param name="sessionId">播放标示句柄</param>
        /// <param name="param">摘要播放参数</param>
        /// <returns>成功返回TRUE,失败返回FALSE</returns>
        public bool SetBriefPlayParam(int sessionId, BriefPlayParam param)
        {
            TVDASDK_BRIEF_PLAY_PARAM tBriefPlayParam = new TVDASDK_BRIEF_PLAY_PARAM();

            tBriefPlayParam.bIsBriefAllFile = param.IsBriefAllFile;
            tBriefPlayParam.dwMoveObjColor  = param.MoveObjColor;
            tBriefPlayParam.dwMoveObjType   = (uint)param.MoveObjType;
            tBriefPlayParam.dwObjDensity    = (uint)param.ObjDensity;
            tBriefPlayParam.dwEndTime       = ModelParser.ConvertLinuxTime(param.EndTime);
            tBriefPlayParam.dwStartTime     = ModelParser.ConvertLinuxTime(param.StartTime);

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, string.Format("IVXSDKProtocol VdaSdk_SetBriefPlayParam sessionId:{0}"
                                                                                                       + ",bIsBriefAllFile:{1}"
                                                                                                       + ",dwMoveObjColor:{2}"
                                                                                                       + ",dwMoveObjType:{3}"
                                                                                                       + ",dwObjDensity:{4}"
                                                                                                       + ",dwEndTime:{5}"
                                                                                                       + ",dwStartTime:{6}"
                                                                                                       , sessionId
                                                                                                       , tBriefPlayParam.bIsBriefAllFile
                                                                                                       , tBriefPlayParam.dwMoveObjColor
                                                                                                       , tBriefPlayParam.dwMoveObjType
                                                                                                       , tBriefPlayParam.dwObjDensity
                                                                                                       , tBriefPlayParam.dwEndTime
                                                                                                       , tBriefPlayParam.dwStartTime
                                                                                                       ));

            bool bRet = IVXSDKProtocol.VdaSdk_SetBriefPlayParam(sessionId, tBriefPlayParam);

            if (!bRet)
            {
                CheckError();
            }

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, string.Format("IVXSDKProtocol VdaSdk_SetBriefPlayParam ret:{0}"
                                                                                                       , bRet
                                                                                                       ));
            return(bRet);
        }
Exemplo n.º 2
0
 public static extern bool VdaSdk_SetBriefPlayParam(int lBriefHandle, TVDASDK_BRIEF_PLAY_PARAM tBriefPalyParam);