次の方法で共有


IStreamSample Interface (Compact 2013)

3/26/2014

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

Header

dshow.h

Library

Strmiids.lib

See Also

Reference

DirectShow Interfaces