Skip to content

Filters automatically selected

When invoking StartPreview, StartRecording, OpenPlayer or StartReencoding, each filter automatically selected while constructing the graph is reported by the OnFilterSelected event.

This event makes it possible to:

  • see which filters are automatically selected,
  • reject a given filter by enabling the RejectFilter parameter, to prevent this filter from being used.

Note

Rejecting a filter assumes that other compatible filters are installed on the platform and will be selected instead; otherwise the construction of the graph will probably fail or be incomplete (e.g. if the capture device has both an audio stream and a video stream, and both streams must be recorded or rendered, either the video stream or the audio stream could be missing).