WriterSet Method (MFWriterClass)
target path for encoding
indicates whether previous configuration will be reset
configuration for encoding
Sets target path and configuration for encoding. Also turns on writer's object to be ready to receive frames.
Syntax
Public Overridable Sub WriterSet( _
   ByVal _bsTargetPath As String, _
   ByVal _bResetOption As Integer, _
   ByVal _bsOptionsList As String _
) 
public virtual void WriterSet( 
   string _bsTargetPath,
   int _bResetOption,
   string _bsOptionsList
)
public procedure WriterSet( 
    _bsTargetPath: String;
    _bResetOption: Integer;
    _bsOptionsList: String
); virtual; 
public: virtual void WriterSet( 
   BSTR* _bsTargetPath,
   int _bResetOption,
   BSTR* _bsOptionsList
) 

Parameters

_bsTargetPath
target path for encoding
_bResetOption
indicates whether previous configuration will be reset
_bsOptionsList
configuration for encoding
Example

Here is example of how set writer's configuration and encode a received frame:

MFWriterClass m_objWriter = new MFWriterClass();
// Configure writer
m_objWriter.WriterSet(targetPath, 1, "format='mp4' play_while_rec='true' video::codec='mpeg4' audio::codec='aac'");
// Get frame from source
MFFrame pFrame = null;
m_objLive.SourceFrameGet(-1, out pFrame, "");
// Encode the frame
m_objWriter.ReceiverFramePut(pFrame, -1, "");
// Release frame from memory
Marshal.ReleaseComObject(pFrame);
See Also

Reference

MFWriterClass Class
MFWriterClass Members