LEADTOOLS Media Foundation Help > LEADTOOLS Media Foundation Features > Media Foundation Objects > Implementing an ltmfPlay Object |
To implement the ltmfPlay object you should use the following steps:
1. |
Create an instance of the ltmfPlay Object, acquiring the IltmfPlay Interface. |
2. |
Set an event callback using SetNotifyWindow. |
3. |
Set a video frame window using put_VideoWindowFrame. |
4. |
Specify the media data source (i.e. file). By default, the playback will begin automatically. |
5. |
Handle ltmfPlay_Notify messages until end of playback. |