Example #1
0
        void ttclient_OnUserVideoFrame(int nUserID, int nStreamID)
        {
            if (userid != nUserID)
            {
                return;
            }

            if (bmp != null)
            {
                bmp.Dispose();
            }
            bmp = null;

            //Release shared memory
            ttclient.ReleaseUserVideoCaptureFrame(vidframe);

            vidframe = ttclient.AcquireUserVideoCaptureFrame(nUserID, out bmp);

            Invalidate();
        }