LEADTOOLS Multimedia API Help > LEADTOOLS Multimedia Features > Multimedia Objects > Creating Custom Source and Target Objects |
The LEAD ltmmCapture, ltmmConvert and ltmmPlay objects allow setting custom media sources and targets. In essence, custom source and target objects are no more than DirectShow source and renderer filters. Users who would like to implement their own custom source or target objects should consult the DirectX SDK for detailed information on creating DirectShow filters.
There are two ways the LEAD objects can access your custom objects:
1. |
You can implement the DirectShow IBaseFilter in your custom object. This would be the case for any DirectShow filter. |
2. |
You can implement IltmmObjectWrapper in your object. This indicates to the LEAD objects that your object is wrapping a sub-object that implements IBaseFilter. This is how the ltmmSampleSource and ltmmSampleTarget objects are implemented. |