Video track,the collection of video clips. A video track is an entity that holds video clips, and users can add, insert, and delete multiple video clips. The video track continues to expand as the clip increases, and video transitions can be inserted between clips. When adding a package transition, users need to install it and get the packageID returned as the handle of the transition. For built-in transition, their names are regarded as handle. Note: The index of the video clip starts from 0.
More...
|
| constructor () |
|
| insertClip (videoFilePath, clipIndex) |
| Inserts a video clip at the specified clip index on the video track. More...
|
|
| insertClip2 (videoFilePath, trimIn, trimOut, clipIndex) |
| Inserts a video clip of the specified length at the specified clip index on the video track. More...
|
|
| appendClip (videoFilePath) |
| Appends a video clip to the end of the video track. More...
|
|
| appendClip2 (videoFilePath, trimIn, trimOut) |
| Appends a video clip of the specified length to the end of the video track. More...
|
|
| addClip (videoFilePath, inPoint) |
| Adds a video clip at the specified position on the video track. More...
|
|
| addClip2 (videoFilePath, inPoint, trimIn, trimOut) |
| Adds a video clip of the specified length at the specified position on the video track. More...
|
|
| addClipWithSpeed (videoFilePath, inPoint, speed, keepAudioPitch) |
| Add clip with speed. More...
|
|
| addClipWithSpeed2 (videoFilePath, inPoint, trimIn, trimOut, speed, keepAudioPitch) |
| Add clip with speed. More...
|
|
| addClipWithSpeedExt (videoFilePath, inPoint, outPoint, speed, keepAudioPitch) |
| Add clip with speed. More...
|
|
| addClipWithSpeedExt2 (videoFilePath, inPoint, outPoint, trimIn, trimOut, speed, keepAudioPitch) |
| Add clip with speed. More...
|
|
| insertTimelineClip (timeline, clipIndex) |
| Inserts a timeline clip at the specified clip index on the video track. More...
|
|
| insertTimelineClip2 (timeline, trimIn, trimOut, clipIndex) |
| Inserts a timeline clip of the specified length at the specified clip index on the video track. More...
|
|
| addTimelineClip (timeline, inPoint) |
| Adds a timeline clip at the specified position on the video track. More...
|
|
| addTimelineClip2 (timeline, inPoint, trimIn, trimOut) |
| Adds a timeline clip of the specified length at the specified position on the video track. More...
|
|
| getClipByIndex (index) |
| Get clip by index. More...
|
|
| getClipByTimelinePosition (timelinePos) |
| Gets video clip by index. More...
|
|
| setBuiltinTransition (srcClipIndex, transitionName) |
| Sets built-in transitions. More...
|
|
| setPackagedTransition (srcClipIndex, packageId) |
| Set packaged transition. More...
|
|
| getTransitionBySourceClipIndex (srcClipIndex) |
| Get the transition through the source video clip index. More...
|
|
| setAvailableInTheme (available) |
| set available in theme More...
|
|
| isAvailableInTheme () |
| available in theme or not More...
|
|
| getFirstTrackVideoFx () |
| Get the first track video effect on the track. More...
|
|
| getLastTrackVideoFx () |
| Get the last track video effect on the track. More...
|
|
| getPrevTrackVideoFx (trackVideoFx) |
| Get the previous track video effect of a track video effect on the track. More...
|
|
| getNextTrackVideoFx (trackVideoFx) |
| Get the next track video effect of a track video effect on the track. More...
|
|
| getTrackVideoFxByPosition (pos) |
| Get a list of track video effects based on position on the track. More...
|
|
| addBuiltinTrackVideoFx (inPoint, duration, videoFxName) |
| Add a built-in track video effect on the track. More...
|
|
| addPackagedTrackVideoFx (inPoint, duration, videoFxPackageId) |
| Add a track video effect in the form of a resource package on the track. More...
|
|
| removeTrackVideoFx (trackVideoFx) |
| Remove a track video effect from the track. More...
|
|
| getFirstCaption () |
| Get the first caption on the track. More...
|
|
| getLastCaption () |
| Get the last caption on the track. More...
|
|
| getPrevCaption (caption) |
| Get the previous caption of the current caption on the track. More...
|
|
| getNextCaption (caption) |
| Get the next caption of the current caption on the track. More...
|
|
| getCaptionsByTimelinePosition (pos) |
| Get the caption by timeline position. More...
|
|
| addCaption (text, inPoint, duration, captionStylePackageId, isPanoramic) |
| Add a caption on the track. More...
|
|
| addModularCaption (text, inPoint, duration) |
| Add a caption on the track. More...
|
|
| removeCaption (caption) |
| Remove the caption on the track. More...
|
|
| getFirstCompoundCaption () |
| Get the first compound caption on the track. More...
|
|
| getLastCompoundCaption () |
| Get the last compound caption on the track. More...
|
|
| getPrevCompoundCaption (caption) |
| Get the previous compound caption of the current caption on the timeline. More...
|
|
| getNextCompoundCaption (caption) |
| Get the next compound caption of the current caption on the timeline. More...
|
|
| getCompoundCaptionsByTimelinePosition (pos) |
| Get a list of compound captions based on the position on the track. More...
|
|
| addCompoundCaption (inPoint, duration, compoundCaptionPackageId) |
| Get a list of compound captions based on the position on the track. More...
|
|
| removeCompoundCaption (caption) |
| Remove compound caption from the track. More...
|
|
| getFirstAnimatedSticker () |
| Get the first animated sticker on the track. More...
|
|
| getLastAnimatedSticker () |
| Get the last animated sticker on the track. More...
|
|
| getPrevAnimatedSticker (animatedSticker) |
| Get the previous animated sticker of the current animated sticker of the track. More...
|
|
| getNextAnimatedSticker (animatedSticker) |
| Get the next animated sticker of the current animated sticker of the track. More...
|
|
| getAnimatedStickersByTimelinePosition (pos) |
| Get an animated sticker list based on the position on the timeline. More...
|
|
| addAnimatedSticker (inPoint, duration, animatedStickerPackageId, isPanoramic, isCustom, customImagePath) |
| Add animated sticker. More...
|
|
| removeAnimatedSticker (animatedSticker) |
| Remove an animated sticker on the track. More...
|
|
| constructor () |
| NvsFx constructor.
|
|
| getType () |
| Get track type. More...
|
|
| getIndex () |
| Gets track index. More...
|
|
| getDuration () |
| Gets track length. More...
|
|
| getClipCount () |
| Gets the number of clips on the track. More...
|
|
| changeInPoint (clipIndex, newInPoint) |
| Modifies the clip's in-point on timeline.If clip does not have this function authorization to return the current InPoint. If newInPoint is less than the outPoint of the previous clip, return the outPoint of the previous clip directly. If the current clip is the 0th clip, newInPoint is at least 0. This function internally calculates a new trimIn based on newInPoint and modifies the trimIn of the clip. If the new trimIn is less than 0, the corresponding Inpoint value when the trimIn is 0 will be returned; if the newInPoint is greater than trimOut, the corresponding Inpoint value of trimOut-1 will be returned. More...
|
|
| changeOutPoint (clipIndex, newOutPoint) |
| Modifies the clip's out-point on timeline.If clip does not have this function authorization to return the current outPoint.If newOutpoint is less than the outPoint of the clip, then newOutpoint will not be less than inpoint+1; if the clip is followed by nextclip, then newOutpoint will not be greater than the inpoint of nextclip. If the current clip is the last clip, the final outPoint is the duration of the timeline. If newOutpoint is greater than the outPoint of the clip, then the end of the video will be FreezeFrame. This function internally calculates a new trimOut based on newOutPoint, and removes the intermediate transition if the inPoint of the clip is not equal to the outPoint of the next clip. More...
|
|
| splitClip (clipIndex, splitPoint) |
| Splits the specified clip. More...
|
|
| removeClip (clipIndex, keepSpace) |
| Removes the specified clip.You are not allowed to remove the opening and ending of a theme. More...
|
|
| removeRange (startTimelinePos, endTimelinePos, keepSpace) |
| Removes all clips within the specified interval, and adjust the timeline in-point or out-point if the clip only partially overlaps the interval., and adjust the timeline in or out point if the clip only partially overlaps the interval.Failed to remove the fragment if it contains the opening and ending sections of the theme.StartTimeLinepos < 0 or endTimeLinepos <= startTimeLinepos will also remove failure. More...
|
|
| moveClip (sourceClipIndex, targetClipIndex) |
| Moving the specified clip, swapping the two positions of the input, affects the arrangement of the clip on the timeline.,clipIndex and destClipIndex cannot be equal to clipCount. More...
|
|
| moveClipByPositions (sourceClipIndex, targetTimelinePos, isInsertTarget, keepSpace) |
| Moves the specified clip to the input position.. clipIndex greater than or equal to clipCount will fail to remove, targetTimeLinePos equal to 0 will be moved to the 0 position, the theme title title will not be moved. More...
|
|
| removeAllClips () |
| Removes all the clips. More...
|
|
| setVolumeGain (leftVolumeGain, rightVolumeGain) |
| Sets the volume. The final volume value is the track volume Multiplied by the clip volume. More...
|
|
| getVolumeGain () |
| Get the volume information. The final volume value is the track volume Multiplied by the clip volume. More...
|
|
| constructor () |
|
| setInternalObject (obj) |
| set internal object More...
|
|
| getInternalObject () |
| get internal object More...
|
|
| setTemplateAttachment (key, value) |
| Adds additional template data to the NvsObject object to identify the NvsObject template object. More...
|
|
| getTemplateAttachment (key) |
| Gets an template attachment to NvsObject. More...
|
|
Video track,the collection of video clips. A video track is an entity that holds video clips, and users can add, insert, and delete multiple video clips. The video track continues to expand as the clip increases, and video transitions can be inserted between clips. When adding a package transition, users need to install it and get the packageID returned as the handle of the transition. For built-in transition, their names are regarded as handle. Note: The index of the video clip starts from 0.