-1

Would someone just show me an example of how this createfilter method in directshow should work?

I see that a string is passed as a parameter but I don't understand what that string exactly is. I only understand the GUID part of it.

halfer
  • 19,824
  • 17
  • 99
  • 186
Josh
  • 13,530
  • 29
  • 114
  • 159

1 Answers1

1

There is no CreateFilter method and even identifier in latest DirectShow.NET 2.1.

There are CreateFilter methods in a couple of sample projects and they do the action explained in comment right there.

/// <summary>
/// Enumerates all filters of the selected category and returns the IBaseFilter for the 
/// filter described in friendlyname
/// </summary>
/// <param name="category">Category of the filter</param>
/// <param name="friendlyname">Friendly name of the filter</param>
/// <returns>IBaseFilter for the device</returns>
private IBaseFilter CreateFilter(Guid category, string friendlyname)
{
Roman R.
  • 68,205
  • 6
  • 94
  • 158
  • Thanks,however, my questions was what this friendly name is and where to get it. – Josh May 24 '13 at 15:26
  • Look this up in the sample projects. `CreateFilter` is not anything "standard", friendly names however are. You get them by enumerating available devices/filters and each one has a friendly name. The samples give you an idea how it is done and what it is for. – Roman R. May 24 '13 at 15:38