Ejemplo n.º 1
0
        /*===========================================================
        *  功  能:查询下一个视频资源信息(遍历接口)
        *  参  数:lQueryHandle - 查询标示值
        *       ptVideoInfo - 视频文件信息
        *  返回值:成功返回TRUE,失败返回FALSE。
        *  ===========================================================*/

        public RVODFileInfo RvodSdk_QueryNextVideoResource(UInt32 lQueryHandle)
        {
            TRVODSDK_VIDEO_INFO ptVideoInfo = new TRVODSDK_VIDEO_INFO()
            {
                dwVideoSize = 0, szVideoPath = "",
            };

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXRVODSDKProtocol RvodSdk_QueryNextVideoResource lQueryHandle:" + lQueryHandle);
            bool retVal = IVXRVODSDKProtocol.RvodSdk_QueryNextVideoResource(lQueryHandle, out ptVideoInfo);

            if (string.IsNullOrEmpty(ptVideoInfo.szVideoPath))
            {
                return(null);
            }
            //if (retVal < 0)
            //{
            //    RVOD_GetError();
            //}

            string       path = ptVideoInfo.szVideoPath.Replace('\\', '/');
            RVODFileInfo info = new RVODFileInfo()
            {
                VodFileName = path,
                VodFileSize = ptVideoInfo.dwVideoSize,
            };

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXRVODSDKProtocol RvodSdk_QueryNextVideoResource ret:" + retVal + ",szVideoPath:" + ptVideoInfo.szVideoPath + ",dwVideoSize:" + ptVideoInfo.dwVideoSize);
            return(info);
        }
Ejemplo n.º 2
0
 public static extern bool RvodSdk_QueryNextVideoResource(UInt32 lQueryHandle, out TRVODSDK_VIDEO_INFO ptVideoInfo);