LEADTOOLS Multimedia (Leadtools.Multimedia assembly)
LEAD Technologies, Inc

SampleSource Class






Members 
The SampleSource object allows the user to supply single media samples to the ConvertCtrl and PlayCtrl objects.
Object Model
SampleSource Class
Syntax
public class SampleSource : System.IDisposable  
'Declaration
 
Public Class SampleSource 
   Implements System.IDisposable 
'Usage
 
Dim instance As SampleSource
function Leadtools.Multimedia.SampleSource()
public ref class SampleSource : public System.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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SampleSource Members
Leadtools.Multimedia Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Multimedia requires a Multimedia or Multimedia Suite license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features