To use the ltmmSampleSource Object perform the following steps:
Feed samples until "end of stream":
1. | Create an instance of the ltmmSampleSource Object, by creating an instance of the IltmmSampleSource Interface. | |
2. | Create an ltmmMediaType Object. | |
3. | Set the media type attributes through the IltmmMediaTypeDisp Interface. | |
4. | Assign the media type to the source by calling the SetMediaType function. | |
5. | Assign the source to the ltmmConvert or ltmmPlay objects using the IltmmConvert::put_SourceObject or the IltmmPlay::put_SourceObject function. | |
6. | Run the object (IltmmConvert::StartConvert or IltmmPlay::Run). | |
7. | Feed samples until the "end of stream": | |
a. | Get a free sample buffer by calling the GetSampleBuffer function. | |
b. | Set the sample attributes and data, through the IltmmMediaSampleDisp Interface. | |
c. | Deliver the sample to the stream by calling the DeliverSample function. | |
d. | Release the buffer Interface. | |
8. | Inform the object at the "end of stream" by calling DeliverEndOfStream. | |
9. | Stop the object by calling IltmmConvert::StopConvert or IltmmPlay::Stop. |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.