Copyright © 2001-2019 MultiMedia Soft

VideoPlayer.FiltersInGraphGetName method

Previous pageReturn to chapter overviewNext page

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 object section.

For details about video clips rendering refer to the How to play video files through DirectShow tutorial.

 

 

Syntax

 

[Visual Basic]

control.VideoPlayer.FiltersInGraphGetName (

nPlayer as Integer,

nFilterIndex as Integer

) as String


 

[C++]

LPCTSTR control.VideoPlayer.FiltersInGraphGetName (

short nPlayer,

short nFilterIndex

);


 

 

Parameter

Description

 

 

nPlayer

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.