Поделиться через


IStreamSample Interface (Windows Embedded CE 6.0)

1/6/2010

This interface provides control over the behavior of stream samples. You can retrieve the media stream that created the sample, set or retrieve sample start and stop times, check the sample's completion status, and perform a developer-specified function on the sample itself.

Implement this interface when you implement a media stream for a new media type. The interface is exposed on sample objects created by media streams.

Use this interface when you want to control data samples created by IMediaStream or its derived interfaces.

Methods in Vtable Order

The following table shows the methods that appear in the Vtable beneath the standard COM methods inherited from IUnknown.

Method Description

GetMediaStream

Retrieves a pointer to the media stream object that created the current sample.

GetSampleTimes

Retrieves the current sample's start and end times.

SetSampleTimes

Sets the current sample's start and end times.

Update

Performs a synchronous or an asynchronous update on the current sample.

CompletionStatus

Retrieves the status of the current sample's latest asynchronous update.

If the update is not complete, you can force it to complete.

Requirements

Windows Embedded CE Windows CE 2.12 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment

See Also

Reference

DirectShow Interfaces