Copyright © 2005-2018 MultiMedia Soft

VideoPlayer.FiltersInGraphGetClsid method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the class identifier (CLSID) of a specific DirectShow filter instanced inside the filter graph for the loaded video clip.

 

A CLSID is a 128 bit (large) number that represents a unique identifier for a software application or application component and is in the format "{AE7AB96B-FF5E-4dce-801E-14DF2C4CD681}".

 

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 FiltersInGraphGetClsid (

nPlayerIndex as Int16,

nFilterIndex as Int16

) as String


 

[C#]

public string FiltersInGraphGetClsid (

Int16 nPlayerIndex,

Int16 nFilterIndex

);


 

[C++]

public: string FiltersInGraphGetClsid (

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 class identifier (CLSID) of the requested DirectShow filter.