ReaderOpen Method (IMFReader)
path to a file
additional parameters
Opens a source file.
Syntax
Sub ReaderOpen( _
   ByVal _bsPath As String, _
   ByVal _bsPropsList As String _
) 
void ReaderOpen( 
   string _bsPath,
   string _bsPropsList
)
procedure ReaderOpen( 
    _bsPath: String;
    _bsPropsList: String
); 
void ReaderOpen( 
   BSTR* _bsPath,
   BSTR* _bsPropsList
) 

Parameters

_bsPath
path to a file
_bsPropsList
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, "");
m_avProps = new M_AV_PROPS(); // set video format for conversion
m_avProps.vidProps.eVideoFormat = eMVideoFormat.eMVF_HD1080_5994i;
MFFrame pFrame = null;
// Get next frame or frame by position
if (m_objMFReader != null)
    m_objMFReader.SourceFrameConvertedGetByTime(ref m_avProps, -1, -1, out pFrame, "");
m_objPreview.ReceiverFramePut(pFrame, -1, ""); // show the frame on preview
See Also

Reference

IMFReader Interface
IMFReader Members