Direct access to the underlying DirectShow audio and video processing filters can be accomplished through the IltmmObjectWrapper interface. This allows the user to programmatically manipulate the individual processors properties. Please consult the individual processing filters documentation to determine the capabilities of that filter.
For example, lets assume that you have added 2 video processors to the ltmmPlay object, and you would like to obtain the underlying DirectShow filter for the second processor.
1. The first step would be to obtain the selected video processors collection from the ltmmPlay object using the following code:
play->get_SelectedVideoProcessors(&pProcessors); // get the selected video processor collection
2. Next, you would get the second processor:
pProcessors->Item(1, &pProcessor); // get the second processor
pProcessors->Release(); // do not need the collection anymore
3. Now, you can obtain the IltmmObjectWrapper interface:
pProcessor->QueryInterface(IID_IltmmObjectWrapper, (void**) &pWrapper); // get the wrapper interface
pProcessor->Release(); // do not need this anymore
4. And finally, you can get the underlying DirectShow filter:
pWrapper->GetWrappedObject(&pObject); // get the DirectShow filter
pWrapper->Release(); // do not need this anymore
pObject now contains the IUnknown interface pointer to the filter. You can access all of the interfaces that the processor implements through this interface pointer.
Medical Web Viewer .NET