Microsoft DirectX 8.1 (C++)

AMTimelineObj.SetStartStop2 Method

The AMTimelineObj.SetStartStop2 method sets the object's start and stop times, relative to the object's parent.

Syntax

object.SetStartStop2(
    Start As Double,
    Stop As Double
)

Parameters

Start

New start time, in seconds, or –1 to keep the existing start time.

Stop

New stop time, in seconds, or –1 to keep the existing stop time.

Error Codes

If the method fails, an error is raised, and Err.Number can be set to one of the following values:

Value Description
E_INVALIDARG Invalid argument.
E_NOTIMPL Not implemented.

Remarks

Tracks, compositions, and groups do not implement this method. For these objects, the start time is always zero, and the stop time is the maximum stop time of the objects they contain.

Do not set overlapping times on source objects within the same track. Doing so can cause undefined behaviors.

For source objects, the start and stop times are independent of the media start and media stop times. Changing one pair of values does not change the other. To set the media start and stop times, call the AMTimelineSrc.SetMediaTimes2 method. For more information, see Time in DirectShow Editing Services.

See Also