CgwMonitorManage.Tiandy.TiandySdkClient.CallbackFunc C# (CSharp) Method

CallbackFunc() private method

码流回调处理,用于判断是否接收到码流,如果接收到码流,标识预览成功,否则失败
private CallbackFunc ( int playfd, int datatype, byte buf, uint size, int usr ) : void
playfd int 预览句柄
datatype int 视频流类型
buf byte 码流
size uint 码流大小
usr int 用户标识数据
return void
        private void CallbackFunc(int playfd, int datatype, byte[] buf, uint size, int usr)
        {
            if (this.handelOperateLock.TryEnterWriteLock(CgwConst.ENTER_LOCK_WAIT_TIME))
            {
                try
                {
                    if (!this.receiveSuccHandle.Contains(playfd))
                    {
                        this.receiveSuccHandle.Add(playfd);
                    }
                }
                finally
                {
                    this.handelOperateLock.ExitWriteLock();
                }
            }

            this.cgwRealDataCallBackFunc(playfd, datatype, buf, size, usr);
        }