LEADTOOLS Multimedia (Leadtools.Multimedia assembly) Send comments on this topic. | Back to Introduction | Help Version 17.0.3.22
SampleSource Class
See Also  Members  
Leadtools.Multimedia Namespace : SampleSource Class



The SampleSource object allows the user to supply single media samples to the ConvertCtrl and PlayCtrl objects.

Object Model

SampleSource Class

Syntax

Visual Basic (Declaration) 
Public Class SampleSource 
   Implements IDisposable 
Visual Basic (Usage)Copy Code
Dim instance As SampleSource
C# 
public class SampleSource : IDisposable  
C++/CLI 
public ref class SampleSource : public IDisposable  

Remarks

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.

Inheritance Hierarchy

System.Object
   Leadtools.Multimedia.SampleSource

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also