- Category: Samples
- Published on Saturday, 23 April 2011 04:01
- Written by Super User
- Hits: 112
Loading filters are just as easy as playing a media file.
Loading a filter in C#:
The CLSID of the filter is usually given. However, one can look it up using the Filter Mapper by the name of the filter. There is only one filter mapper available per application to reduce code complexity and prevent bad coding.
The above code looks for the first filter found whose name contains "Video Mixing Renderer" and creates an instance of the selected filter.
Inserting filters into the filter graph happens to be just as easy.
That is how you create and insert filters into a filter graph with MediaFramework.