Example #1
0
        public bool GetPlayResolution(UInt64 dwStrmId, out UInt32 pdwWidth, out UInt32 pdwHeight)
        {
            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, string.Format("IVXStreamIOSDKProtocol StrmGetResolution dwStrmId:{0}"
                                                                                                       , dwStrmId
                                                                                                       ));

            uint retVal = IVXStreamIOSDKProtocol.StrmGetResolution(dwStrmId, out pdwWidth, out pdwHeight);

            if (retVal > 0)
            {
                // 调用失败,抛异常
                DIO_GetError(retVal);
            }


            MyLog4Net.ILogExtension.DebugWithDebugView(MyLog4Net.Container.Instance.Log, string.Format("IVXStreamIOSDKProtocol StrmGetResolution ret:{0}"
                                                                                                       + ",pdwWidth:{1}"
                                                                                                       + ",pdwHeight:{2}"
                                                                                                       , retVal
                                                                                                       , pdwWidth
                                                                                                       , pdwHeight
                                                                                                       ));
            return(retVal > 0);
        }