Custom filter interface usage
Products: Video Capture SDK .Net, Video Edit SDK .Net, Media Player SDK .Net
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 the VisioForge.Shared
assembly to your project to have DirectShow API support. You can use your custom interface in the same way from eventArgs.Filter
.
The OnFilterAdded event can be called many times. Check the filter name to find the correct interface.
Please get in touch with support to get help with this tutorial. Visit our GitHub page to get more code samples.
Required redists
- SDK redist
Visit our GitHub page to get more code samples.