MediaStreamSample.CreateFromBuffer(IBuffer, TimeSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a MediaStreamSample from an IBuffer.
public:
static MediaStreamSample ^ CreateFromBuffer(IBuffer ^ buffer, TimeSpan timestamp);
static MediaStreamSample CreateFromBuffer(IBuffer const& buffer, TimeSpan const& timestamp);
public static MediaStreamSample CreateFromBuffer(IBuffer buffer, System.TimeSpan timestamp);
function createFromBuffer(buffer, timestamp)
Public Shared Function CreateFromBuffer (buffer As IBuffer, timestamp As TimeSpan) As MediaStreamSample
Parameters
- buffer
- IBuffer
The buffer that contains the media data used to create the MediaStreamSample.
Returns
The sample created from the data in buffer.
Remarks
For certain formats, the decode time and the presentation time of a MediaStreamSample are different. The decode time can be accessed through the DecodeTimestamp property.