SourceFrameGet Method (IMFSource)
maximal wait time in milliseconds. By default use "-1".
converted frame object
additional parameters
Gets an original next frame of a file or live source
Syntax
Sub SourceFrameGet( _
   ByVal _rtMaxWait As Long, _
   ByRef _ppFrame As MFFrame, _
   ByVal _bsHints As String _
) 
void SourceFrameGet( 
   long _rtMaxWait,
   out MFFrame _ppFrame,
   string _bsHints
)
procedure SourceFrameGet( 
    _rtMaxWait: Int64;
   Out  _ppFrame: MFFrame;
    _bsHints: String
); 
void SourceFrameGet( 
   long _rtMaxWait,
   [PARAMFLAG::Out] MFFrame* _ppFrame,
   BSTR* _bsHints
) 

Parameters

_rtMaxWait
maximal wait time in milliseconds. By default use "-1".
_ppFrame
converted frame object
_bsHints
additional parameters
Example

Here is an example of how to send a frame to a preview:

m_objPreview = new MFPreviewClass();
//Configure preview
m_objPreview.PreviewWindowSet("", panelPreview.Handle.ToInt32());
m_objPreview.PreviewEnable("", 1, 1);
m_objMFReader = new MFReaderClass();
m_objMFReader.ReaderOpen(sourceFileName, "");
MFFrame pFrame = null;
// Get next frame
if (m_objMFReader != null)
    m_objMFReader.SourceFrameGet(-1, out pFrame, "");
m_objPreview.ReceiverFramePut(pFrame, -1, ""); // show the frame on preview
See Also

Reference

IMFSource Interface
IMFSource Members