VideoPlayer.FiltersInGraphGetName method |
|
Remarks
Obtains the friendly name of a specific DirectShow filter instanced inside the filter graph for the loaded video clip.
For further details about the use of the embedded video player see the VideoPlayer class section.
For details about video clips rendering refer to the How to play video files through DirectShow tutorial.
Syntax
[Visual Basic] Public Function FiltersInGraphGetName ( nPlayerIndex as Int16, nFilterIndex as Int16 ) as String |
[C#] public string FiltersInGraphGetName ( Int16 nPlayerIndex, Int16 nFilterIndex ); |
[C++] public: string FiltersInGraphGetName ( Int16 nPlayerIndex, Int16 nFilterIndex ); |
Parameter |
Description |
|
|
nPlayerIndex |
Number representing the zero-based index of the player that will use the video player. |
nFilterIndex |
Number representing the zero-based index of the DirectShow filter. The total number of instanced DirectShow filters can be obtained using the VideoPlayer.FiltersInGraphGetCount method. |
Return value
Value |
Meaning |
|
|
Empty string |
The value of the nFilterIndex parameter was out of range. Use the value returned by the VideoPlayer.FiltersInGraphGetCount method in order to know how many DirectShow filters are currently instanced inside the filter graph. |
Valid string |
The string containing the friendly name of the requested DirectShow filter. |