Class: NvsTrack

NvsTrack()

Track class: track, a structure that holds segments. Tracks can be regarded as a collection of clips, which are divided into audio track and video track. After you create a timeline instance, you can add or remove multiple tracks. On each track, you can add multiple video and audio clips to edit, set the volume of the clips, or remove and move the position.

Constructor

new NvsTrack()

Source:

Extends

Methods

changeInPoint(clipIndex, newInPoint) → {Num}

change in point
Parameters:
Name Type Description
clipIndex clip index
newInPoint new in point
Source:
Returns:
Type
Num

changeOutPoint(clipIndex, newOutPoint) → {Num}

change out point
Parameters:
Name Type Description
clipIndex clip index
newOutPoint new out point
Source:
Returns:
Type
Num

getClipCount() → {Num}

get count of clip
Source:
Returns:
Type
Num

getDuration() → {Num}

get duration
Source:
Returns:
Type
Num

getIndex() → {Num}

get track index
Source:
Returns:
Type
Num

getInternalObject() → {Num}

get internal object
Overrides:
Source:
Returns:
Type
Num

getTemplateAttachment(key) → {Num}

get template attachment according key
Parameters:
Name Type Description
key key
Overrides:
Source:
Returns:
Type
Num

getType() → {Num}

get type
Source:
Returns:
Type
Num

getVolumeGain() → {Num}

get volume gain
Source:
Returns:
Type
Num

moveClip(sourceClipIndex, targetClipIndex) → {Num}

move clip
Parameters:
Name Type Description
sourceClipIndex source clip index
targetClipIndex target clip index
Source:
Returns:
Type
Num

moveClipByPosition(sourceClipIndex, targetTimelinePos, isInsertTarget, keepSpace) → {Num}

move clip according position
Parameters:
Name Type Description
sourceClipIndex source clip index
targetTimelinePos target timeline position
isInsertTarget insert target or not
keepSpace keep space
Source:
Returns:
Type
Num

removeAllClips() → {Num}

remove all clips
Source:
Returns:
Type
Num

removeClip(clipIndex, keepSpace) → {Num}

remove clip
Parameters:
Name Type Description
clipIndex clip index
keepSpace keep space
Source:
Returns:
Type
Num

removeRange(startTimelinePos, endTimelinePos, keepSpace) → {Num}

remove range
Parameters:
Name Type Description
startTimelinePos start point position of timeline
endTimelinePos end point position of timeline
keepSpace keep space
Source:
Returns:
Type
Num

setInternalObject(obj)

set internal object
Parameters:
Name Type Description
obj internal object
Overrides:
Source:
Returns:

setTemplateAttachment(key, value)

get template attachment
Parameters:
Name Type Description
key key
value value
Overrides:
Source:
Returns:

setVolumeGain(leftVolumeGain, rightVolumeGain) → {Num}

set volume gain
Parameters:
Name Type Description
leftVolumeGain left volume gain
rightVolumeGain right volume gain
Source:
Returns:
Type
Num

splitClip(clipIndex, splitPoint) → {Num}

split clip
Parameters:
Name Type Description
clipIndex clip index
splitPoint split point
Source:
Returns:
Type
Num