Compartilhar via


IMediaPosition::put_StopTime

 
Microsoft DirectShow 9.0

IMediaPosition::put_StopTime

The put_StopTime method sets the time at which the playback will stop, relative to the duration of the stream.

Syntax

  HRESULT put_StopTime(
  REFTIME llTime
);

Parameters

llTime

[in] Stop time, in seconds.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK Success.
E_INVALIDARG Invalid argument.
E_NOTIMPL Not implemented.

Remarks

The stop time ignores the start time and the playback rate. For example, if the start time is 2 seconds, the stop time is 12 seconds, and the playback rate is 2.0, playback will stop after 5 seconds (real time).

Requirements

Header: Declared in Control.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also