MFORMATSLib Namespace > IMFWriter Interface : WriterGet Method |
Sub WriterGet( _ ByRef _pbsTargetPath As String, _ ByRef _pbsOptionsList As String _ )
void WriterGet( out string _pbsTargetPath, out string _pbsOptionsList )
procedure WriterGet( Out _pbsTargetPath: String; Out _pbsOptionsList: String );
void WriterGet( [PARAMFLAG::Out] BSTR* _pbsTargetPath, [PARAMFLAG::Out] BSTR* _pbsOptionsList )
Here is example of how to set an audio codec and get a full configuration for encoding:
IMFProps props; m_objWriter.WriterOptionSetByIndex(eMFWriterOption.eMFWO_AudioCodec, 2, out props); // to set 3rd available audio codec string tPath, options; m_objWriter.WriterGet(out tPath, out options);