←Select platform
In This Topic ▼

MediaSample Class Members

Summary

The following tables list the members exposed by MediaSample.

Public Constructors

Name Description
Public Constructor
MediaSample Initializes a new instance of a MediaSample object with default parameters.

Public Methods

Name Description
Public Method
Clone Creates a complete copy of this MediaSample object.
Public Method CopyTo Copies the data and all the attributes to another MediaSample object.
Public Method Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public Method GetData Gets a copy of the actual MediaSample data in the buffer.
Public Method GetMediaTime Gets the media start and stop times for this sample.
Public Method GetMediaType Gets the media type, if the media type differs from the previous sample.
Public Method GetTime Gets the stream times at which this sample should start and stop.
Public Method ResetMediaTime Resets the media time.
Public Method ResetTime Invalidates the stream time.
Public Method SetData Copies sample data to the buffer.
Public Method SetMediaTime Sets the media times for this sample.
Public Method SetMediaType Sets the MediaSample's media type.
Public Method SetTime Sets the stream times when this sample should start and stop.

Public Properties

Name Description
Public Property
ActualDataLength Gets or sets the length of the valid buffer data, in bytes.
Public Property Buffer Gets a reference for direct access to the media sample buffer.
Public Property BufferSize Gets the size of the sample buffer, in bytes.
Public Property Discontinuity Gets or sets a value indicating whether this sample represents a break in the data stream.
Public Property Preroll Gets or sets a value indicating whether the sample is a preroll sample.
Public Property SyncPoint Gets or sets a value indicating whether the beginning of the sample is a synchronization point.

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly