Class: NvsClip

NvsClip()

Specific description of clips and audio and video files. Clip is an entity containing audio and video content. It is a description of video and audio files. It is divided into audio clip and video clip. It defines the common attributes and behaviors of different types of clips, that is, the derived audio clips and video clips can modify their clipping entry and exit points, left and right channels, playback speed, etc. In the SDK framework, corresponding audio clips and video clips can be added on the track.

Constructor

new NvsClip()

Source:

Extends

Methods

changeCurvesVariableSpeed(curvesString, keepAudioPitch)

change variable speed of curves
Parameters:
Name Type Description
curvesString curves string
keepAudioPitch keep audio pitch
Source:
Returns:

changeSpeed(newSpeed, keepAudioPitch)

change speed
Parameters:
Name Type Description
newSpeed new speed
keepAudioPitch keep audio pitch
Source:
Returns:

changeTrimInPoint(newTrimInPoint, affectSibling)

change trim in point
Parameters:
Name Type Description
newTrimInPoint new trim in point
affectSibling affect sibling
Source:
Returns:

changeTrimOutPoint(newTrimOutPoint, affectSibling)

change trim out point
Parameters:
Name Type Description
newTrimOutPoint new trim out point
affectSibling affect sibling
Source:
Returns:

getClipPosByTimelinePosCurvesVariableSpeed(timelinePos)

get clip position according timeline position curve speed
Parameters:
Name Type Description
timelinePos timeline position
Source:
Returns:

getClipVariableSpeedCurvesString()

get curve character string of clip speed
Source:
Returns:

getFadeInDuration()

get duration of fade in
Source:
Returns:

getFadeOutDuration()

get duration of fade out
Source:
Returns:

getFilePath()

get file path
Source:
Returns:

getFxCount()

get fx count
Source:
Returns:

getIndex()

get index
Source:
Returns:

getInPoint()

get in point
Source:
Returns:

getInternalObject() → {Num}

get internal object
Overrides:
Source:
Returns:
Type
Num

getOutPoint()

get out point
Source:
Returns:

getSpeed()

get speed
Source:
Returns:

getTemplateAttachment(key) → {Num}

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

getTimelinePosByClipPosCurvesVariableSpeed(clipPos)

get timeline position according curve speed of clip position
Parameters:
Name Type Description
clipPos clip position
Source:
Returns:

getTrimIn()

get trim in
Source:
Returns:

getTrimOut()

get trim out
Source:
Returns:

getType()

get type
Source:
Returns:

getVolumeGain()

get volume gain
Source:
Returns:

moveTrimPoint(offset)

move trim point
Parameters:
Name Type Description
offset offset
Source:
Returns:

setFadeInDuration(duration)

set duration of fade in
Parameters:
Name Type Description
duration duration
Source:
Returns:

setFadeOutDuration(duration)

set duration of fade out
Parameters:
Name Type Description
duration duration
Source:
Returns:

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)

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