AddAudioClip
|
AddAudioClip Method |
Description
Add an audio to the timeline. support input MP3, WMA, WAV,AVI, XVID, DIVX, WMV, MPEG1, MPEG2, VOB, DAT, MP4, MOV, WebM, MKV, FLV, M2TS. Input MPEG2,VOB, FLV, M2TS videos need purchased our decoder plugin.
Syntax
Public Function AddAudioClip ( _ |
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
filename
the path of audio/video file
clipStartTime
Time in seconds when the clip will start on the timeline
clipStopTime
Time in seconds when the clip will end on the timeline.
mediaTime
Time in seconds at which point in the media to start from.
volume
The value of volume. By default is 1. The range from 0-10, 0.5 = 50% of original volume.
Return Value
Return value is the clip index of the newly added clip if successful.
Return -1 , the path of video/audio file is empty.
Return -2 , the path of video/audio file not found.
Return -3 , the clipStartTime >= clipStopTime.
Return -4 , the track not found.
Return -5 , the unknown error.
Return -6 , Does not support this media format.
Example
Visual Basic Syntax |