MPLATFORMLib Namespace > IMFormat Interface : FormatVideoGet Method |
Sub FormatVideoGet( _ ByVal _eFormatType As eMFormatType, _ ByRef _pVidProps As M_VID_PROPS, _ ByRef _pnIndex As Integer, _ ByRef _pbsName As String _ )
void FormatVideoGet( eMFormatType _eFormatType, out M_VID_PROPS _pVidProps, out int _pnIndex, out string _pbsName )
procedure FormatVideoGet( _eFormatType: eMFormatType; Out _pVidProps: M_VID_PROPS; Out _pnIndex: Integer; Out _pbsName: String );
void FormatVideoGet( eMFormatType _eFormatType, [PARAMFLAG::Out] M_VID_PROPS _pVidProps, [PARAMFLAG::Out] int _pnIndex, [PARAMFLAG::Out] BSTR* _pbsName )
Here is example of how to set custom format to the playlist:
Dim nIndex As Integer Dim strFormat As String Dim vidProps As M_VID_PROPS Dim myPlaylist As New MPlaylistClass() myPlaylist.FormatVideoGet(eMFormatType.eMFT_Output, vidProps, nIndex, strFormat) vidProps.eScaleType = eMScaleType.eMST_LetterBox myPlaylist.FormatVideoSet(eMFormatType.eMFT_Convert, vidProps)
int nIndex; string strFormat; M_VID_PROPS vidProps; MPlaylistClass myPlaylist = new MPlaylistClass(); myPlaylist.FormatVideoGet(eMFormatType.eMFT_Output, out vidProps, out nIndex, out strFormat); vidProps.eScaleType = eMScaleType.eMST_LetterBox; myPlaylist.FormatVideoSet(eMFormatType.eMFT_Convert, ref vidProps);
var m_objPlaylist;; m_pFormat; vidProps: M_VID_PROPS; strFormat: string; nIndex: integer; begin m_objPlaylist:= CreateComObject(CLASS_MPlaylist) as MPlaylist; m_pFormat := m_objPlaylist as IMFormat; m_pFormat.FormatVideoGet(eMFT_Output, vidProps, nIndex, strFormat); vidProps.eScaleType = eMScaleType.eMST_LetterBox; m_pFormat.FormatVideoSet(eMFT_Convert, vidProps); end;