示例#1
0
文件: Form1.cs 项目: xlgwr/move
 public void AvFrameCallBack(IntPtr hTmCC, ref TMCC.tmAvImageInfo_t pFrame, IntPtr context)
 {
     if (pFrame.video == 1)//视频
     {
         // string str = "解码输出:" + Convert.ToString(pFrame.bufsize0);
         // tip(str);
     }
 }
示例#2
0
文件: Form1.cs 项目: xlgwr/move
        public void StreamDataCallBack(IntPtr hTmCC, ref TMCC.tmRealStreamInfo_t pStreamInfo, IntPtr context)
        {
            if (pStreamInfo.byFrameType == 0)//视频
            {
                iTemp++;
                String str = "[" + Convert.ToString(pStreamInfo.iSamplesPerSec) + "x" + Convert.ToString(pStreamInfo.iBitsPerSample) + "] ";
                var strTitle = "ClientDemo C# " + str;
                for (int i = 0; i < iTemp; i++)
                {
                    strTitle += ">";
                }

                if (iTemp == 22)
                {
                    iTemp = 0;
                }
            }
        }