Cgw.T28181.T28181VideoMonitor.RealPlayCallBackRawFun C# (CSharp) Method

RealPlayCallBackRawFun() private static method

T28181实况回调,获取得到实况的RTP包、处理获取到的rtp数据包
private static RealPlayCallBackRawFun ( IntPtr pEventBuf, UInt32 uiSize, IntPtr pUser ) : void
pEventBuf System.IntPtr RTP字节数组包
uiSize System.UInt32 RTP包的大小
pUser System.IntPtr 用户数据,存储rtp收流通道
return void
        private static void RealPlayCallBackRawFun(IntPtr pEventBuf, UInt32 uiSize, IntPtr pUser)
        {
            try
            {
                //获取播放通道
                int[] pChannel = new int[1];
                Marshal.Copy(pUser, pChannel, 0, 1);
                uint channel = (uint)pChannel[0];

                //进行rtp包转码
                rtpAdapter.ESDK_RTP_ProcessPacket(pEventBuf, uiSize, channel);
            }
            catch (System.Exception ex)
            {
                NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
                logEx.Error("RealPlayCallBackRawFun failed.Execption message:{0}", ex.Message);
            }
        }