CgwMonitorManage.eLTE.eLTEVideoMonitor.RealPlayCallBackRawFun C# (CSharp) Method

RealPlayCallBackRawFun() static private method

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

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