Movie Maker Timeline Control

GetVideoClip Method

Description

Get video clip information.

Syntax

Public Function GetVideoClip ( _
   ByVal trackIndex as integer, _
   ByVal clipIndex as integer, _
   ByVal filename as string, _
   ByVal clipStartTime as float, _
   ByVal clipStopTime as float, _
   ByVal mediaTime as float, _
   ByVal stretchMode as integer
  )

 

Parameter

trackIndex
   0 - Transition Track
   1 - Video 1 Track
   2 - Video 2 Track
   3 - Image Track
   4 - Effect Track
   5 - Audio 1 Track
   6 - Audio 2 Track
   7 - Text Track

clipIndex
    the index of audio clip

filename
    return the path of audio/video file

clipStartTime
    return the startime of the clip on the timeline

clipStopTime
    return the stoptime of the clip on the timeline

mediaTime
    return the media start time of the clip on the timeline.

stretchMode
    return the stretchMode.

Return Value

filename
    return the path of video file

clipStartTime
    return the startime of the clip on the timeline

clipStopTime
    return the stoptime of the clip on the timeline

mediaTime
    return the media start time of the clip on the timeline.



 

Example

Visual Basic Syntax
Dim strFilename As String
Dim iclipStart As Single
Dim iclipStop As Single
Dim imediaStarttime As Single
Dim istretchMode as Single
Dim ivolume As Single
TimelineControl1.GetVideoClip 1, 0, strFilename, iclipStart, iclipStop, imediaStarttime,istretchMode