Microsoft DirectX 9.0

AMTimelineComp.VTrackInsBefore Method

The VTrackInsBefore method inserts a virtual track into the composition at the specified priority.

Syntax

object.VTrackInsBefore(
    pVirtualTrack As AMTimelineObj,
    Priority As Long
)

Parameters

pVirtualTrack

AMTimelineObj object that specifies the virtual track.

Priority

Priority at which to insert the virtual track, or –1 to insert the virtual track at the end of the priority list.

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_NOINTERFACE Object specified by pVirtualTrack is not a virtual track.

Remarks

Priority levels start at zero. If the timeline already contains a virtual track at the specified priority level, everything from that point on moves down the priority list to make room for the inserted track. This method fails if the specified priority is greater than the current number of tracks.

See Also