Custom filter interface usage

Sample code

We’ll work with Video Capture SDK .Net. API is the same for all SDKs.

Video Capture SDK has an OnFilterAdded event.

To get the DirectShow IBaseFilter interface, use code like this:

IBaseFilter baseFilter = eventArgs.Filter as IBaseFilter;

Add VisioForge.Shared assembly to your project to have DirectShow API support.

To use your custom interface, you can get it using the same way from eventArgs.Filter.

OnFilterAdded event can be called many times. Check filter name to find a correct interface.

Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.

abstract 2abstract 1abstract 3
logo
VisioForge © 2006 - 2021