コード例 #1
0
ファイル: CardNetPlayer.cs プロジェクト: ewin66/Monitor
        public HKCardNetPlayer(IVideoSourceConfig config, IVideoSourceFactory factory, IntPtr hWnd)
            : base(config, null, factory)
        {
            HWnd = hWnd;

            mClientVideoInfo.m_sIPAddress     = config.IP;
            mClientVideoInfo.m_sUserName      = "******";
            mClientVideoInfo.m_sUserPassword  = "******";
            mClientVideoInfo.m_bUserCheck     = false;
            mClientVideoInfo.m_bRemoteChannel = (byte)config.Channel;
            mClientVideoInfo.m_hShowVideo     = hWnd;
            mClientVideoInfo.m_nImgFormat     = 0; //0 主通道 1 子通道
            mClientVideoInfo.m_bSendMode      = HikClientSDKWrap.NetSendMode.TCPMODE;

            //mReadDataCallBack = new READDATA_CALLBACK(OnReadDataCallBack);
            mCapPicFun = new CAP_PIC_FUN(OnCapPicFun);

            Target = (Int32)config.Channel;
        }
コード例 #2
0
 public extern static bool MP4_ClientSetCapPicCallBack(int StockHandle, CAP_PIC_FUN CapPicFun);