public class SampleSource : IDisposable
public ref class SampleSource : public System.IDisposable
A sample source will provide samples having a specific media type. This media type is set in the MediaType object. The media type for the source sample is set by calling the SetMediaType. To determine the media type of a sample, use the GetMediaType method. The sample source object must be set for either an ConvertCtrl or PlayCtrl object and then start either the play or the conversion process. Once this is done, the sample source can begin sending samples downstream. Using the GetSampleBuffer method, obtain a free sample buffer. Set the appropriate sample information. Deliver the sample by calling the DeliverSample. Continue sending samples until the end of the stream is reached. At that point, call the DeliverEndOfStream method and stop the play or conversion process, using PlayCtrl.Stop or ConvertCtrl.StopConvert.
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