예제 #1
0
        public uint DIOStartRealPlayStrm(uint loginid, string pChannelId, IntPtr hWnd, out UInt32 pdwRealStrmId)
        {
            m_LPSTRMCALLBACK = OnLPSTRMCALLBACK;
            if (pChannelId.Contains(" "))
            {
                pChannelId = pChannelId.Substring(pChannelId.LastIndexOf(' ') + 1);
            }
            IntPtr userContext = Marshal.AllocHGlobal(4);

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXStreamIOSDKProtocol StrmRealStartPlay loginid:" + loginid + ",pChannelId:" + pChannelId + ",hWnd:" + hWnd.ToInt64());
            UInt32 retVal = IVXDIOSDKProtocol.DIORealPlay(loginid, pChannelId, 0, (uint)hWnd.ToInt32(), m_LPSTRMCALLBACK, userContext, out pdwRealStrmId);

            if (retVal > 0)
            {
                DIO_GetError((uint)retVal);
            }

            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, "IVXStreamIOSDKProtocol StrmRealStartPlay ret:" + retVal + ",pdwRealStrmId:" + pdwRealStrmId);
            return((uint)retVal);
        }