FormatVideoGet Method (MFLiveClass)
format type
video properties
index of current video format
name of the format
Gets a current video format
Syntax
Public Overridable Sub FormatVideoGet( _
   ByVal _eFormatType As eMFormatType, _
   ByRef _pVidProps As M_VID_PROPS, _
   ByRef _pnIndex As Integer, _
   ByRef _pbsName As String _
) 
public virtual void FormatVideoGet( 
   eMFormatType _eFormatType,
   out M_VID_PROPS _pVidProps,
   out int _pnIndex,
   out string _pbsName
)
public procedure FormatVideoGet( 
    _eFormatType: eMFormatType;
   Out  _pVidProps: M_VID_PROPS;
   Out  _pnIndex: Integer;
   Out  _pbsName: String
); virtual; 
public: virtual void FormatVideoGet( 
   eMFormatType _eFormatType,
   [PARAMFLAG::Out] M_VID_PROPS _pVidProps,
   [PARAMFLAG::Out] int _pnIndex,
   [PARAMFLAG::Out] BSTR* _pbsName
) 

Parameters

_eFormatType
format type
_pVidProps
video properties
_pnIndex
index of current video format
_pbsName
name of the format
Example

Here is an example of how to fill a combobox with all available input video formats for a live source and select a current format:

M_VID_PROPS vidProps;
int fCount;
m_objLive.FormatVideoGetCount(eMFormatType.eMFT_Input, out fCount);
if (fCount > 0)
{
    for (int i = 0; i < fCount; i++)
    {
        string name;
        m_objLive.FormatVideoGetByIndex(eMFormatType.eMFT_Input, i, out vidProps, out name);
        comboBoxVF.Items.Add(name);
    }
    // Get current format
    int nCurrent = 0;
    try
    {
        string strName;
        M_VID_PROPS _vidProps;
        m_objLive.FormatVideoGet(eMFormatType.eMFT_Input, out _vidProps, out nCurrent, out strName);
    }
    catch (System.Exception) { }
    // Select a current format
    comboBoxVF.SelectedIndex = nCurrent;
}
See Also

Reference

MFLiveClass Class
MFLiveClass Members