private void M_objPlaylist_OnFrameSafe(string bsChannelID, object pMFrame) { if (count % 20 == 0) { MFrame frame; m_objPlaylist.SourceFrameGet(-1, out frame, 0); frame.FrameVideoGetBytes(out size, out video); label1.Text = size.ToString(); label2.Text = video.ToString(); (pMFrame as IMFrame).FrameVideoGetBytes(out size, out video); label3.Text = size.ToString(); label4.Text = video.ToString(); } count++; }