MeiCam SDK For Android  3.10.0
Public Member Functions | List of all members
com.meicam.sdk.NvsVideoTrack Class Reference

video track,the collection of video clips. More...

Inheritance diagram for com.meicam.sdk.NvsVideoTrack:
com.meicam.sdk.NvsTrack com.meicam.sdk.NvsObject

Public Member Functions

NvsVideoClip appendClip (String filePath)
 Appends a video clip to the end of the video track. More...
 
NvsVideoClip appendClip (String filePath, long trimIn, long trimOut)
 Appends a video clip of the specified length to the end of the video track. More...
 
NvsVideoClip insertClip (String filePath, int clipIndex)
 Inserts a video clip at the specified clip index on the video track. More...
 
NvsVideoClip insertClip (String filePath, long trimIn, long trimOut, int clipIndex)
 Inserts a video clip of the specified length at the specified clip index on the video track. More...
 
NvsVideoClip addClip (String filePath, long inPoint)
 add clip. More...
 
NvsVideoClip addClip (String filePath, long inPoint, long trimIn, long trimOut)
 Adds a clip of the specified length. More...
 
NvsVideoClip appendTimelineClip (NvsTimeline timeline)
 Appends a timeline clip to the end of the video track. More...
 
NvsVideoClip appendTimelineClip (NvsTimeline timeline, long trimIn, long trimOut)
 Appends a timeline clip of the specified length to the end of the video track. More...
 
NvsVideoClip insertTimelineClip (NvsTimeline timeline, int clipIndex)
 Inserts a timeline clip at the specified clip index on the video track. More...
 
NvsVideoClip insertTimelineClip (NvsTimeline timeline, long trimIn, long trimOut, int clipIndex)
 Inserts a timeline clip of the specified length at the specified clip index on the video track. More...
 
NvsVideoClip addTimelineClip (NvsTimeline timeline, long inPoint)
 Adds timeline clip. More...
 
NvsVideoClip addTimelineClip (NvsTimeline timeline, long inPoint, long trimIn, long trimOut)
 Adds a timeline clip of the specified length. More...
 
NvsVideoClip getClipByIndex (int clipIndex)
 Gets video clip by index. More...
 
NvsVideoClip getClipByTimelinePosition (long timelinePos)
 Gets video clip by time. More...
 
NvsVideoTransition setBuiltinTransition (int srcClipIndex, String transitionName)
 Sets built-in transitions. More...
 
NvsVideoTransition setPackagedTransition (int srcClipIndex, String packageId)
 Sets resource package transition. More...
 
NvsVideoTransition setCustomVideoTransition (int srcClipIndex, NvsCustomVideoTransition.Renderer customVideoTransitionRender)
 Sets custom video transition. More...
 
NvsVideoTransition getTransitionBySourceClipIndex (int srcClipIndex)
 Get the transition through the source video clip index. More...
 
void setEnableOriginalRender (boolean enable)
 Turn on special effect rendering based on the original scale of the video track. More...
 
boolean isOriginalRender ()
 Gets whether the original scale rendering mode is turned on. More...
 
void setProxyScale (NvsRational proxyScale)
 Disable the current track from rendering at the proxy scale. More...
 
NvsRational getProxyScale ()
 Gets whether the current track is disabled from rendering at the proxy scale. More...
 
NvsTrackCaption getFirstCaption ()
 Get the first caption on the track. More...
 
NvsTrackCaption getLastCaption ()
 Get the last caption on the track. More...
 
NvsTrackCaption getPrevCaption (NvsTrackCaption caption)
 Get the previous caption of the current caption on the track. More...
 
NvsTrackCaption getNextCaption (NvsTrackCaption caption)
 Get the next caption of the current caption on the track. More...
 
List< NvsTrackCaptiongetCaptionsByTimelinePosition (long timelinePos)
 Get a list of captions based on the position on the track. More...
 
NvsTrackCaption addCaption (String captionText, long inPoint, long duration, String captionStylePackageId)
 Add a caption on the track. More...
 
NvsTrackCaption addPanoramicCaption (String captionText, long inPoint, long duration, String captionStylePackageId)
 Add a panorama caption on the track. More...
 
NvsTrackCaption addModularCaption (String captionText, long inPoint, long duration)
 Add a modular caption on the track. More...
 
NvsTrackCaption removeCaption (NvsTrackCaption caption)
 Remove the caption on the track. More...
 
NvsTrackCompoundCaption getFirstCompoundCaption ()
 Get the first compound caption on the track. More...
 
NvsTrackCompoundCaption getLastCompoundCaption ()
 Get the last compound caption on the track. More...
 
NvsTrackCompoundCaption getPrevCaption (NvsTrackCompoundCaption caption)
 Get the previous compound caption of the current compound caption on the track. More...
 
NvsTrackCompoundCaption getNextCaption (NvsTrackCompoundCaption caption)
 Get the next compound caption of the current compound caption on the track. More...
 
List< NvsTrackCompoundCaptiongetCompoundCaptionsByTimelinePosition (long timelinePos)
 Get a list of compound captions based on the position on the track. More...
 
NvsTrackCompoundCaption addCompoundCaption (long inPoint, long duration, String compoundCaptionPackageId)
 Add a caption on the track. More...
 
NvsTrackCompoundCaption removeCompoundCaption (NvsTrackCompoundCaption caption)
 Remove compound caption from the track. More...
 
NvsTrackAnimatedSticker getFirstAnimatedSticker ()
 Get the first animated sticker on the track. More...
 
NvsTrackAnimatedSticker getLastAnimatedSticker ()
 Get the last animated sticker on the track. More...
 
NvsTrackAnimatedSticker getPrevAnimatedSticker (NvsTrackAnimatedSticker animatedSticker)
 Get the previous animated sticker of the current animated sticker of the track. More...
 
NvsTrackAnimatedSticker getNextAnimatedSticker (NvsTrackAnimatedSticker animatedSticker)
 Get the next animated sticker of the current animated sticker of the track. More...
 
List< NvsTrackAnimatedStickergetAnimatedStickersByTimelinePosition (long timelinePos)
 Get an animated sticker list based on the position on the track. More...
 
NvsTrackAnimatedSticker addAnimatedSticker (long inPoint, long duration, String animatedStickerPackageId)
 Add a animated sticker on the track. More...
 
NvsTrackAnimatedSticker addPanoramicAnimatedSticker (long inPoint, long duration, String animatedStickerPackageId)
 Add a panorama animation sticker on the track. More...
 
NvsTrackAnimatedSticker addCustomAnimatedSticker (long inPoint, long duration, String animatedStickerPackageId, String customImagePath)
 Add a custom animated sticker on the track. More...
 
NvsTrackAnimatedSticker addCustomPanoramicAnimatedSticker (long inPoint, long duration, String animatedStickerPackageId, String customImagePath)
 Add a a custom panorama animated sticker on the track. More...
 
NvsTrackAnimatedSticker removeAnimatedSticker (NvsTrackAnimatedSticker animatedSticker)
 Remove an animated sticker on the track. More...
 
NvsTrackVideoFx getFirstTrackVideoFx ()
 Get the first track video effect on the track. More...
 
NvsTrackVideoFx getLastTrackVideoFx ()
 Get the last track video effect on the track. More...
 
NvsTrackVideoFx getPrevTrackVideoFx (NvsTrackVideoFx videoFx)
 Get the previous track video effect of a track video effect on the track. More...
 
NvsTrackVideoFx getNextTrackVideoFx (NvsTrackVideoFx videoFx)
 Get the next track video effect of a track video effect on the track. More...
 
List< NvsTrackVideoFxgetTrackVideoFxByPosition (long pos)
 Get a list of track video effects based on position on the track. More...
 
void updateAudioForTrackVideoFx ()
 Update the audio information in the current track effect. More...
 
NvsTrackVideoFx addBuiltinTrackVideoFx (long inPoint, long duration, String videoFxName)
 Add a built-in track video effect on the track. More...
 
NvsTrackVideoFx addBuiltinTrackVideoFx (long inPoint, long duration, String videoFxName, int flags)
 Add a built-in track video effect on the track. More...
 
NvsTrackVideoFx addPackagedTrackVideoFx (long inPoint, long duration, String videoFxPackageId)
 Add a track video effect in the form of a resource package on the track. More...
 
NvsTrackVideoFx addPackagedTrackVideoFx (long inPoint, long duration, String videoFxPackageId, int flags)
 Add a track video effect in the form of a resource package on the track. More...
 
NvsTrackVideoFx addCustomTrackVideoFx (long inPoint, long duration, NvsCustomVideoFx.Renderer customVideoFxRender)
 Add a custom track video effect on the track. More...
 
NvsTrackVideoFx removeTrackVideoFx (NvsTrackVideoFx videoFx)
 Remove a track video effect from the track. More...
 
- Public Member Functions inherited from com.meicam.sdk.NvsTrack
int getType ()
 Get track type. More...
 
int getIndex ()
 Gets track index. More...
 
long getDuration ()
 Gets track length. More...
 
int getClipCount ()
 Gets the number of clips on the track. More...
 
long changeInPoint (int clipIndex, long 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...
 
long changeOutPoint (int clipIndex, long 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...
 
boolean splitClip (int clipIndex, long splitPoint)
 Splits the specified clip. More...
 
boolean removeClip (int clipIndex, boolean keepSpace)
 Removes the specified clip.You are not allowed to remove the opening and ending of a theme. More...
 
boolean removeRange (long startTimelinePos, long endTimelinePos, boolean 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...
 
boolean moveClip (int clipIndex, int destClipIndex)
 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...
 
boolean moveClip (int clipIndex, long targetTimelinePos, boolean isInsertTarget, boolean 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...
 
boolean removeAllClips ()
 Removes all the clips. More...
 
void setVolumeGain (float leftVolumeGain, float rightVolumeGain)
 Sets the volume. The final volume value is the track volume Multiplied by the clip volume. More...
 
NvsVolume getVolumeGain ()
 Get the volume information. The final volume value is the track volume Multiplied by the clip volume. More...
 
- Public Member Functions inherited from com.meicam.sdk.NvsObject
void setAttachment (String key, Object value)
 Adds additional data to the NvsObject object to identify the NvsObject object or for other purpose. More...
 
void setTemplateAttachment (String key, String value)
 Adds additional template data to the NvsObject object to identify the NvsObject template object. More...
 
Object getAttachment (String key)
 Gets an attachment to NvsObject. More...
 
String getTemplateAttachment (String key)
 Gets an template attachment to NvsObject. More...
 

Static Public Attributes

Track type

Video Fx Flags

static final int TRACK_ADD_VIDEO_FX_FLAGS_RENDER_AT_CLIP_RAW_FILTER = 1
 
- Static Public Attributes inherited from com.meicam.sdk.NvsTrack
static final int TRACK_TYPE_VIDEO = 0
 Video track. More...
 
static final int TRACK_TYPE_AUDIO = 1
 Audio track. More...
 
- Static Public Attributes inherited from com.meicam.sdk.NvsObject
static final String TEMPLATE_KEY_REPLACE_ID = "MSTemplate-ReplaceId"
 
static final String TEMPLATE_KEY_FOOTAGE_CAN_REPLACE = "MSTemplate-FootageCanReplace"
 
static final String TEMPLATE_KEY_FOOTAGE_ID = "MSTemplate-FootageId"
 
static final String TEMPLATE_KEY_FOOTAGE_NAME = "MSTemplate-FootageName"
 
static final String TEMPLATE_KEY_FOOTAGE_M3U8_NAME = "MSTemplate-FootageM3U8Name"
 
static final String TEMPLATE_KEY_FOOTAGE_TAGS = "MSTemplate-FootageTags"
 
static final String TEMPLATE_KEY_FOOTAGE_TYPE = "MSTemplate-FootageType"
 
static final String TEMPLATE_KEY_FOOTAGE_NEED_REVERSE = "MSTemplate-FootageNeedReverse"
 
static final String TEMPLATE_KEY_CLIP_RAW_WIDTH = "MSTemplate-ClipRawWidth"
 
static final String TEMPLATE_KEY_CLIP_RAW_HEIGHT = "MSTemplate-ClipRawHeight"
 
static final String TEMPLATE_KEY_VOLUME_TYPE = "MSTemplate-VolumeType"
 
static final String TEMPLATE_KEY_FX_GROUP = "MSTemplate-FxGroup"
 
static final String TEMPLATE_KEY_BEST_SEEK_TIME = "MSTemplate-BestSeekTime"
 
static final String TEMPLATE_KEY_MASK_TYPE = "MSTemplate-MaskType"
 
static final String TEMPLATE_VALUE_MASK_TYPE_LINE = "MSTemplate-MaskType-Line"
 
static final String TEMPLATE_VALUE_MASK_TYPE_MIRROR = "MSTemplate-MaskType-Mirror"
 
static final String TEMPLATE_VALUE_MASK_TYPE_CIRCLE = "MSTemplate-MaskType-Circle"
 
static final String TEMPLATE_VALUE_MASK_TYPE_RECT = "MSTemplate-MaskType-Rect"
 
static final String TEMPLATE_VALUE_MASK_TYPE_HEART = "MSTemplate-MaskType-Heart"
 
static final String TEMPLATE_VALUE_MASK_TYPE_STAR = "MSTemplate-MaskType-Star"
 
static final String TEMPLATE_KEY_TRANS_TYPE_CUT = "MSTemplate-TransType-Cut"
 
static final String TEMPLATE_KEY_CURVE_SPEED_TYPE = "MSTemplate-CurveSpeedType"
 
static final String TEMPLATE_VALUE_CURVE_SPEED_TYPE_CUSTOM = "MSTemplate-CurveSpeedType-Custom"
 
static final String TEMPLATE_VALUE_CURVE_SPEED_TYPE_MONTAGE = "MSTemplate-CurveSpeedType-Montage"
 
static final String TEMPLATE_VALUE_CURVE_SPEED_TYPE_HERO = "MSTemplate-CurveSpeedType-Hero"
 
static final String TEMPLATE_VALUE_CURVE_SPEED_TYPE_BULLET = "MSTemplate-CurveSpeedType-bullet"
 
static final String TEMPLATE_VALUE_CURVE_SPEED_TYPE_PLUS = "MSTemplate-CurveSpeedType-Plus"
 
static final String TEMPLATE_VALUE_CURVE_SPEED_TYPE_IN = "MSTemplate-CurveSpeedType-In"
 
static final String TEMPLATE_VALUE_CURVE_SPEED_TYPE_OUT = "MSTemplate-CurveSpeedType-Out"
 

Additional Inherited Members

- Protected Member Functions inherited from com.meicam.sdk.NvsObject
void setInternalObject (long internalObject)
 
long getInternalObject ()
 
- Protected Attributes inherited from com.meicam.sdk.NvsObject
long m_internalObject = 0
 

Detailed Description

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.

Warning
In the NvsVideoTrack class, all public APIs are used in the UI thread! ! !

Member Function Documentation

◆ addAnimatedSticker()

NvsTrackAnimatedSticker com.meicam.sdk.NvsVideoTrack.addAnimatedSticker ( long  inPoint,
long  duration,
String  animatedStickerPackageId 
)
inline

Add a animated sticker on the track.

Parameters
inPointThe in point of the animated sticker on the track (in microseconds)
durationThe duration of the animation sticker which displayed (in microseconds)
animatedStickerPackageIdAnimated sticker package Id
Returns
Return the NvsTrackAnimatedSticker object.
It will return null in the following situations:
1. No animated sticker function authorization;
2. The animatedStickerPackageId is empty or null;
3. The animatedSticker has not install successed;
4. If inPoint is less than 0 or greater than or equal to the current track duration, or duration is not greater than 0.
See also
removeAnimatedSticker

◆ addBuiltinTrackVideoFx() [1/2]

NvsTrackVideoFx com.meicam.sdk.NvsVideoTrack.addBuiltinTrackVideoFx ( long  inPoint,
long  duration,
String  videoFxName 
)
inline

Add a built-in track video effect on the track.

Parameters
inPointThe in point of the track video effect on the track (in microseconds)
durationDuration of the track video effect which displayed (in microseconds)
videoFxNameThe video effect name
Returns
Return the NvsTrackVideoFx object

◆ addBuiltinTrackVideoFx() [2/2]

NvsTrackVideoFx com.meicam.sdk.NvsVideoTrack.addBuiltinTrackVideoFx ( long  inPoint,
long  duration,
String  videoFxName,
int  flags 
)
inline

Add a built-in track video effect on the track.

Parameters
inPointThe in point of the track video effect on the track (in microseconds)
durationDuration of the track video effect which displayed (in microseconds)
videoFxNameThe video effect name
flagsThe flags when add a build-in track video effect
Returns
Return the NvsTrackVideoFx object

◆ addCaption()

NvsTrackCaption com.meicam.sdk.NvsVideoTrack.addCaption ( String  captionText,
long  inPoint,
long  duration,
String  captionStylePackageId 
)
inline

Add a caption on the track.

Parameters
captionTextText of caption
inPointThe in point of the caption on the track (in microseconds)
durationCaption display duration (in microseconds)
captionStylePackageIdCaption style package Id.If it does not exist, you can pass an empty string or null.
Returns
Returns the NvsTrackCaption object.
It will return null in the following situations:
1. No caption function authorization;
2. If inPoint is less than 0 or greater than or equal to the current track duration, or duration is not greater than 0.
See also
removeCaption

◆ addClip() [1/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.addClip ( String  filePath,
long  inPoint 
)
inline

add clip.

Parameters
filePathClip file path. For the clip's path in Android, there are two ways:

a. Creates an assets folder in the local program path, usually in the same directory as the res folder. The corresponding audio and video resources can be placed inside, the path form: "assets: /video20170406101714.mp4".

b. Imports the audio and video resources in the mobile phone through the absolute path, the path form: "/storage/Media/DCIM/IMG_0646.MP4".

Parameters
inPointThe in point of the clip on the timeline (in microseconds) For more information of the in and out points of a clip on the timeline, please refer to the section trimIn and trimOut.
Returns
Return the added video clip object
Warning
In the NvsVideoTrack class, all public APIs are used in the UI thread! ! !
See also
appendClip
insertClip

◆ addClip() [2/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.addClip ( String  filePath,
long  inPoint,
long  trimIn,
long  trimOut 
)
inline

Adds a clip of the specified length.

Parameters
filePathClip path. For clip path types, please refer to the parameter filePath of addClip().
inPointThe in point of the clip on the timeline (in microseconds).
trimInclip trim in point (in microseconds).
trimOutclip trim out point (in microseconds).
Returns
Returns the added video clip object. When users use addClip() to add clips, the clip to be added will split the current clip at the specified in point on the timeline. In the specified in point, the clips contained in the position corresponding to the length of the clip to be added on the track will be deleted. Then the clips to be added can be added. If there is a gap in the corresponding position, it will be covered directly. examples are as follows:

As shown above, there are three video clips C1, C2, C3 on the track, and a clip C4 is to be added. The arrow on the C4 clip points to the trim in amd out points of the clip. The arrow on the track refers to the in-point of the clip on the timeline. After clipping, the corresponding clip is added to the track. The code is implemented as follows: NvsVideoTrack videoTrack; //videoTrack Omits creation here. videoTrack.addClip(filepath,inPoint,trimIn,trimOut);//Filepath is the path of the clip C4, and inPoint is the value of the position indicated by the arrow on the track in the figure, and trimIn and trimOut are the values at the position indicated by the arrow on the C4 clip of the above figure.

When added, the results are as follows:

Warning
This interface will cause the streaming engine state to jump to the engine stop state. For details, please refer to Engine Change.
Parameters need to meet (0 <= trimIn < trimOut). If trimOut is bigger than the file original duration, it will be played in the last frame
See also
appendClip
insertClip

◆ addCompoundCaption()

NvsTrackCompoundCaption com.meicam.sdk.NvsVideoTrack.addCompoundCaption ( long  inPoint,
long  duration,
String  compoundCaptionPackageId 
)
inline

Add a caption on the track.

Parameters
captionTextText of caption
inPointThe in point of the caption on the track (in microseconds)
durationCaption display duration (in microseconds)
captionStylePackageIdCaption style package Id.If it does not exist, you can pass an empty string or null.
Returns
Returns the NvsTrackCaption object.
It will return null in the following situations:
1. No compound caption function authorization;
2. If inPoint is less than 0 or greater than or equal to the current track duration, or duration is not greater than 0.
Since
2.9.0
See also
removeCompoundCaption

◆ addCustomAnimatedSticker()

NvsTrackAnimatedSticker com.meicam.sdk.NvsVideoTrack.addCustomAnimatedSticker ( long  inPoint,
long  duration,
String  animatedStickerPackageId,
String  customImagePath 
)
inline

Add a custom animated sticker on the track.

Parameters
inPointThe in point of custom animated sticker on the track (in microseconds)
durationThe duration of custom animation sticker which displayed (in microseconds)
animatedStickerPackageIdAnimated sticker package Id
customImagePathPath of custom animated sticker image(It can be a jpg, png image, or a dynamic caf format image supported by Meishe sdk)
Returns
Return the NvsTrackAnimatedSticker object.
It will return null in the following situations:
1. No animated sticker function authorization;
2. The animatedStickerPackageId is empty or null;
3. The animatedSticker has not install successed;
4. If inPoint is less than 0 or greater than or equal to the current track duration, or duration is not greater than 0.
Note: If the return value is not null, you still cannot see the sticker effect, you need to check whether the customImagePath actually exists.
See also
removeAnimatedSticker

◆ addCustomPanoramicAnimatedSticker()

NvsTrackAnimatedSticker com.meicam.sdk.NvsVideoTrack.addCustomPanoramicAnimatedSticker ( long  inPoint,
long  duration,
String  animatedStickerPackageId,
String  customImagePath 
)
inline

Add a a custom panorama animated sticker on the track.

Parameters
inPointThe in point of custom animated sticker on the track (in microseconds)
durationThe duration of custom animation sticker which displayed (in microseconds)
animatedStickerPackageIdAnimated sticker package Id
customImagePathPath of custom animated sticker image
Returns
Return the NvsTrackAnimatedSticker object.
It will return null in the following situations:
1. No animated sticker function authorization or no panoramic function authorization;
2. The animatedStickerPackageId is empty or null;
3. The animatedSticker has not install successed;
4. If inPoint is less than 0 or greater than or equal to the current track duration, or duration is not greater than 0.
Note: If the return value is not null, you still cannot see the sticker effect, you need to check whether the customImagePath actually exists.
Since
1.6.0
See also
removeAnimatedSticker

◆ addCustomTrackVideoFx()

NvsTrackVideoFx com.meicam.sdk.NvsVideoTrack.addCustomTrackVideoFx ( long  inPoint,
long  duration,
NvsCustomVideoFx.Renderer  customVideoFxRender 
)
inline

Add a custom track video effect on the track.

Parameters
inPointThe in point of the track video effect on the track (in microseconds)
durationDuration of the track video effect which displayed (in microseconds)
customVideoFxRenderUser-implemented custom video effects renderer interface
Returns
Return the NvsTrackVideoFx object
Since
2.15.0

◆ addModularCaption()

NvsTrackCaption com.meicam.sdk.NvsVideoTrack.addModularCaption ( String  captionText,
long  inPoint,
long  duration 
)
inline

Add a modular caption on the track.

Parameters
captionTextText of caption
inPointThe in point of the caption on the track (in microseconds)
durationCaption display duration (in microseconds)
Returns
Returns the NvsTrackCaption object.
It will return null in the following situations:
1. No caption function authorization;
2. If inPoint is less than 0 or greater than or equal to the current track duration, or duration is not greater than 0.
See also
removeCaption

◆ addPackagedTrackVideoFx() [1/2]

NvsTrackVideoFx com.meicam.sdk.NvsVideoTrack.addPackagedTrackVideoFx ( long  inPoint,
long  duration,
String  videoFxPackageId 
)
inline

Add a track video effect in the form of a resource package on the track.

Parameters
inPointThe in point of the track video effect on the track (in microseconds)
durationDuration of the track video effect which displayed (in microseconds)
videoFxPackageIdThe Id of resource package
Returns
Return the NvsTrackVideoFx object

◆ addPackagedTrackVideoFx() [2/2]

NvsTrackVideoFx com.meicam.sdk.NvsVideoTrack.addPackagedTrackVideoFx ( long  inPoint,
long  duration,
String  videoFxPackageId,
int  flags 
)
inline

Add a track video effect in the form of a resource package on the track.

Parameters
inPointThe in point of the track video effect on the track (in microseconds)
durationDuration of the track video effect which displayed (in microseconds)
videoFxPackageIdThe Id of resource package
flagsThe flags when add a package track video effect
Returns
Return the NvsTrackVideoFx object

◆ addPanoramicAnimatedSticker()

NvsTrackAnimatedSticker com.meicam.sdk.NvsVideoTrack.addPanoramicAnimatedSticker ( long  inPoint,
long  duration,
String  animatedStickerPackageId 
)
inline

Add a panorama animation sticker on the track.

Parameters
inPointThe in point of the animated sticker on the track (in microseconds)
durationThe duration of the animation sticker which displayed (in microseconds)
animatedStickerPackageIdAnimated sticker package Id
Returns
Return the NvsTrackAnimatedSticker object.
It will return null in the following situations:
1. No animated sticker function authorization or no panoramic function authorization;
2. The animatedStickerPackageId is empty or null;
3. The animatedSticker has not install successed;
4. If inPoint is less than 0 or greater than or equal to the current track duration, or duration is not greater than 0.
Since
1.6.0
See also
removeAnimatedSticker

◆ addPanoramicCaption()

NvsTrackCaption com.meicam.sdk.NvsVideoTrack.addPanoramicCaption ( String  captionText,
long  inPoint,
long  duration,
String  captionStylePackageId 
)
inline

Add a panorama caption on the track.

Parameters
captionTextText of caption
inPointThe in point of the caption on the track (in microseconds)
durationCaption display duration (in microseconds)
captionStylePackageIdCaption style package Id.If it does not exist, you can pass an empty string or null.
Returns
Returns the NvsTrackCaption object.
It will return null in the following situations:
1. No caption function authorization;
2. If inPoint is less than 0 or greater than or equal to the current track duration, or duration is not greater than 0.
Since
1.6.0
See also
removeCaption

◆ addTimelineClip() [1/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.addTimelineClip ( NvsTimeline  timeline,
long  inPoint 
)
inline

Adds timeline clip.

Parameters
timelineThe timeline object to be added.
inPointThe in point of the clip on the timeline (in microseconds)
Returns
Return the added video clip object
Warning
In the NvsVideoTrack class, all public APIs are used in the UI thread! ! !
See also
appendTimelineClip
insertTimelineClip
Since
2.24.0

◆ addTimelineClip() [2/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.addTimelineClip ( NvsTimeline  timeline,
long  inPoint,
long  trimIn,
long  trimOut 
)
inline

Adds a timeline clip of the specified length.

Parameters
timelineThe timeline object to be added.
inPointThe in point of the clip on the timeline (in microseconds).
trimInclip trim in point (in microseconds).
trimOutclip trim out point (in microseconds).
Returns
Returns the added video clip object.
Warning
This interface will cause the streaming engine state to jump to the engine stop state. For details, please refer to Engine Change.
Parameters need to meet (0 <= trimIn < trimOut). If trimOut is bigger than the added timeline duration, it will be played in the last frame
See also
appendTimelineClip
insertTimelineClip
Since
2.24.0

◆ appendClip() [1/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.appendClip ( String  filePath)
inline

Appends a video clip to the end of the video track.

Parameters
filePathVideo clip path. For clip path types, please refer to the parameter filePath of addClip().
Returns
Returns the appended video clip object. example:

In the above picture, there are three clips on the video track, namely C1, C2, C3, and a new clip C4 is added to the end of the video track. NvsVideoTrack m_videoTrack;//m_videoTrack omitted creation NvsVideoClip m_videoClip; m_videoClip = m_videoTrack.appendClip(filepath) //Filepath is the path of clip C4. After appending, it becomes::

Warning
This interface causes the streaming engine state to jump to the engine stop state. For more details, please refer to Engine Changes.
See also
insertClip

◆ appendClip() [2/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.appendClip ( String  filePath,
long  trimIn,
long  trimOut 
)
inline

Appends a video clip of the specified length to the end of the video track.

Parameters
filePathVideo clip path. For clip path types, please refer to the parameter filePath of addClip().
trimInTrim in point of video clips (in microseconds).
trimOutTrim out point of video clips (in microseconds).
Returns
Returns the appended video clip object. For more information of trim in and out points, please refer to the section trimIn and trimOut.
Warning
In the NvsVideoTrack class, all public APIs are used in the UI thread! ! !
Parameters need to meet (0 <= trimIn < trimOut). If trimOut is bigger than the file original duration, it will be played in the last frame
See also
insertClip

◆ appendTimelineClip() [1/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.appendTimelineClip ( NvsTimeline  timeline)
inline

Appends a timeline clip to the end of the video track.

Parameters
timelineThe timeline object to be appended.
Returns
Returns the appended video clip object.
Warning
This interface causes the streaming engine state to jump to the engine stop state. For more details, please refer to Engine Changes.
See also
insertTimelineClip
Since
2.24.0

◆ appendTimelineClip() [2/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.appendTimelineClip ( NvsTimeline  timeline,
long  trimIn,
long  trimOut 
)
inline

Appends a timeline clip of the specified length to the end of the video track.

Parameters
timelineThe timeline to be appended.
trimInTrim in point of video clips (in microseconds).
trimOutTrim out point of video clips (in microseconds).
Returns
Returns the appended video clip object. For more information of trim in and out points, please refer to the section trimIn and trimOut.
Warning
In the NvsVideoTrack class, all public APIs are used in the UI thread! ! !
Parameters need to meet (0 <= trimIn < trimOut). If trimOut is bigger than the timeline duration, it will be played in the last frame
See also
insertClip
Since
2.24.0

◆ getAnimatedStickersByTimelinePosition()

List<NvsTrackAnimatedSticker> com.meicam.sdk.NvsVideoTrack.getAnimatedStickersByTimelinePosition ( long  timelinePos)
inline

Get an animated sticker list based on the position on the track.

Parameters
trackPosPosition on the track (in microseconds)
Returns
Returns a list which holding the current position animated sticker object
The sorting rules for the obtained animated sticker list are as follows:
1.When adding, the in points are different,animated stickers are arranged in the order of the in points;
2.When adding, the in points are the same, they are arranged in the order in which the animation stickers are added.
See also
addAnimatedSticker

◆ getCaptionsByTimelinePosition()

List<NvsTrackCaption> com.meicam.sdk.NvsVideoTrack.getCaptionsByTimelinePosition ( long  timelinePos)
inline

Get a list of captions based on the position on the track.

Parameters
trackPosThe position on the track(in micro-second)
Returns
Returns a list of arrays of captions at the current position。
The sorting rules for the obtained captions list are as follows:
1.When adding, the in points are different, and captions are arranged in the order of the in points;
2.When adding, the in points are the same, and captions are arranged in the order of adding captions.
See also
addCaption

◆ getClipByIndex()

NvsVideoClip com.meicam.sdk.NvsVideoTrack.getClipByIndex ( int  clipIndex)
inline

Gets video clip by index.

Parameters
clipIndexVideo clip index. Clip index value range: NvsVideoTrack m_videoTrack;//m_videoTrack omitted creation int clipCount = m_videoTrack.getClipCount(); The value of clipIndex is [0, clipCount-1]
Returns
Returns the captured video clip object.
See also
getClipByTimelinePosition
insertClip
appendClip

◆ getClipByTimelinePosition()

NvsVideoClip com.meicam.sdk.NvsVideoTrack.getClipByTimelinePosition ( long  timelinePos)
inline

Gets video clip by time.

Parameters
timelinePosPosition on the timeline (in microseconds).
Returns
Returns the captured video clip object.
See also
getClipByIndex

◆ getCompoundCaptionsByTimelinePosition()

List<NvsTrackCompoundCaption> com.meicam.sdk.NvsVideoTrack.getCompoundCaptionsByTimelinePosition ( long  timelinePos)
inline

Get a list of compound captions based on the position on the track.

Parameters
trackPosThe position on the track(in micro-second)
Returns
Returns a list of compound captions at the current position。
The sorting rules for the obtained captions list are as follows:
1. If the in points are different, captions are sorted in the order of the in points;
2. If the in points are the same, and captions are sorted in the order of compound caption added.
Since
2.9.0
See also
addCompoundCaption

◆ getFirstAnimatedSticker()

NvsTrackAnimatedSticker com.meicam.sdk.NvsVideoTrack.getFirstAnimatedSticker ( )
inline

Get the first animated sticker on the track.

Returns
Return the acquired NvsTrackAnimatedSticker object.
See also
getLastAnimatedSticker
addAnimatedSticker

◆ getFirstCaption()

NvsTrackCaption com.meicam.sdk.NvsVideoTrack.getFirstCaption ( )
inline

Get the first caption on the track.

Returns
Returns the NvsTrackCaption object.
See also
getLastCaption
addCaption

◆ getFirstCompoundCaption()

NvsTrackCompoundCaption com.meicam.sdk.NvsVideoTrack.getFirstCompoundCaption ( )
inline

Get the first compound caption on the track.

Returns
Returns the compound caption object.
Since
2.9.0
See also
getLastCompoundCaption
addCompoundCaption

◆ getFirstTrackVideoFx()

NvsTrackVideoFx com.meicam.sdk.NvsVideoTrack.getFirstTrackVideoFx ( )
inline

Get the first track video effect on the track.

Returns
Returns the acquired NvsTrackVideoFx object.

◆ getLastAnimatedSticker()

NvsTrackAnimatedSticker com.meicam.sdk.NvsVideoTrack.getLastAnimatedSticker ( )
inline

Get the last animated sticker on the track.

Returns
Return the acquired NvsTrackAnimatedSticker object.
See also
getFirstAnimatedSticker

◆ getLastCaption()

NvsTrackCaption com.meicam.sdk.NvsVideoTrack.getLastCaption ( )
inline

Get the last caption on the track.

Returns
Returns the NvsTrackCaption object.
See also
getFirstCaption
addCaption

◆ getLastCompoundCaption()

NvsTrackCompoundCaption com.meicam.sdk.NvsVideoTrack.getLastCompoundCaption ( )
inline

Get the last compound caption on the track.

Returns
Returns the compound caption object.
Since
2.9.0
See also
getFirstCompoundCaption
addCompoundCaption

◆ getLastTrackVideoFx()

NvsTrackVideoFx com.meicam.sdk.NvsVideoTrack.getLastTrackVideoFx ( )
inline

Get the last track video effect on the track.

Returns
Returns the acquired NvsTrackVideoFx object.

◆ getNextAnimatedSticker()

NvsTrackAnimatedSticker com.meicam.sdk.NvsVideoTrack.getNextAnimatedSticker ( NvsTrackAnimatedSticker  animatedSticker)
inline

Get the next animated sticker of the current animated sticker of the track.

Parameters
animatedStickerthe current NvsTrackAnimatedSticker obejct
Returns
Return the acquired NvsTrackAnimatedSticker object.
See also
getPrevAnimatedSticker

◆ getNextCaption() [1/2]

NvsTrackCaption com.meicam.sdk.NvsVideoTrack.getNextCaption ( NvsTrackCaption  caption)
inline

Get the next caption of the current caption on the track.

Parameters
captionThe current caption on the track
Returns
Returns the NvsTrackCaption object.
See also
getPrevCaption

◆ getNextCaption() [2/2]

NvsTrackCompoundCaption com.meicam.sdk.NvsVideoTrack.getNextCaption ( NvsTrackCompoundCaption  caption)
inline

Get the next compound caption of the current compound caption on the track.

Parameters
captionThe current compound caption on the track
Returns
Returns the compound caption object.
Since
2.9.0
See also
getPrevCompoundCaption

◆ getNextTrackVideoFx()

NvsTrackVideoFx com.meicam.sdk.NvsVideoTrack.getNextTrackVideoFx ( NvsTrackVideoFx  videoFx)
inline

Get the next track video effect of a track video effect on the track.

Parameters
videoFxThe NvsTrackVideoFx object
Returns
Returns the acquired NvsTrackVideoFx object.

◆ getPrevAnimatedSticker()

NvsTrackAnimatedSticker com.meicam.sdk.NvsVideoTrack.getPrevAnimatedSticker ( NvsTrackAnimatedSticker  animatedSticker)
inline

Get the previous animated sticker of the current animated sticker of the track.

Parameters
animatedStickerthe current NvsTrackAnimatedSticker obejct
Returns
Return the acquired NvsTrackAnimatedSticker object.
See also
getNextAnimatedSticker

◆ getPrevCaption() [1/2]

NvsTrackCaption com.meicam.sdk.NvsVideoTrack.getPrevCaption ( NvsTrackCaption  caption)
inline

Get the previous caption of the current caption on the track.

Parameters
captionThe current caption on the track
Returns
Returns the NvsTrackCaption object.
See also
getNextCaption

◆ getPrevCaption() [2/2]

NvsTrackCompoundCaption com.meicam.sdk.NvsVideoTrack.getPrevCaption ( NvsTrackCompoundCaption  caption)
inline

Get the previous compound caption of the current compound caption on the track.

Parameters
captionThe current compound caption on the track
Returns
Returns the compound caption object.
Since
2.9.0
See also
getNextCompoundCaption

◆ getPrevTrackVideoFx()

NvsTrackVideoFx com.meicam.sdk.NvsVideoTrack.getPrevTrackVideoFx ( NvsTrackVideoFx  videoFx)
inline

Get the previous track video effect of a track video effect on the track.

Parameters
videoFxThe NvsTrackVideoFx object
Returns
Returns the acquired NvsTrackVideoFx object.

◆ getProxyScale()

NvsRational com.meicam.sdk.NvsVideoTrack.getProxyScale ( )
inline

Gets whether the current track is disabled from rendering at the proxy scale.

Returns
Disable or not.
See also
disableProxyScale
Since
2.19.1

◆ getTrackVideoFxByPosition()

List<NvsTrackVideoFx> com.meicam.sdk.NvsVideoTrack.getTrackVideoFxByPosition ( long  pos)
inline

Get a list of track video effects based on position on the track.

Parameters
PosThe position on the track (in microseconds)
Returns
Returns an list of track video effects in current position.
The ordering rules for the acquired track video effects are as follows:
1.When adding, the in points are different, arranged in the order of the in points;
2.When adding, the entry points are the same, arranged in the order of adding track video effects.

◆ getTransitionBySourceClipIndex()

NvsVideoTransition com.meicam.sdk.NvsVideoTrack.getTransitionBySourceClipIndex ( int  srcClipIndex)
inline

Get the transition through the source video clip index.

Parameters
srcClipIndexSource video clip index.
Returns
Returns the obtained video transition object.
See also
setBuiltinTransition

◆ insertClip() [1/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.insertClip ( String  filePath,
int  clipIndex 
)
inline

Inserts a video clip at the specified clip index on the video track.

Parameters
filePathVideo clip path. For clip path type, please refer to the parameter filePath of addClip().
clipIndexIndex of the inserted clip.
Returns
Returns the inserted video clip object. insertClip() inserts a clip right before the one indexed by clipIndex. An example is as follows:

There are three video clips C1, C2, and C3 on the track in the above figure, and the clip to be inserted is recorded as C4. If the clip is inserted before C1, the clipIndex value is 0 and same rule can be used in other cases. The corresponding code is implemented as follows: NvsVideoTrack m_videoTrack;//m_videoTrack omitted creation int clipCount = m_videoTrack.getClipCount(); NvsVideoClip m_videoClip; m_videoClip = m_videoTrack.insertClip(filepath,0); //Filepath is the path of clip C4, and the value of clipIndex is [0, clipCount-1] After insertion, it becomes:

Warning
This interface will cause the streaming engine state to jump to the engine stop state. For details, please refer to Engine Change.
If index is greater than the number of existing clips, it is added at the end.If the value of clipIndex is equal to 0, meanwhile the timeline contain themeLeader,the return object is NULL.If the value of clipIndex is more or equal to the getClipCount() of this track, meanwhile the timeline contain themeTrailer,the return object is NULL.
See also
appendClip

◆ insertClip() [2/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.insertClip ( String  filePath,
long  trimIn,
long  trimOut,
int  clipIndex 
)
inline

Inserts a video clip of the specified length at the specified clip index on the video track.

Parameters
filePathVideo clip path. For the clip path method, please refer to the parameter filePath of addClip().
clipIndexIndex of the inserted clip.
trimInTrim in point of video clips (in microseconds)
trimOutTrim out point of video clips (in microseconds))
Returns
Returns the inserted video clip object.

There are three video clips C1, C2, C3 on the track in the above figure, and the clip C4 is to be inserted. The point indicated by the arrow on the C4 clip is the clip's trim in and out points, C4 is inserted after trim. Note: The trim in and out values must be within the duration of this clip, and the trim in point value must be less than the trim out point value. The implementation code is as follows: NvsVideoTrack m_videoTrack;//m_videoTrack Omits creation int clipCount = m_videoTrack.getClipCount(); NvsVideoClip m_videoClip; m_videoClip = m_videoTrack.insertClip(filepath,trimIn,trimOut,0);//Filepath is the path of clip C4, trim in and trim out are the values at the position indicated by the arrow on the C4 clip of the above figure, and the value of clipIndex is [0, clipCount-1]. After insertion, it becomes:

Warning
This interface will cause the streaming engine state to jump to the engine stop state. For details, please refer to Engine Change.
If index is greater than the number of existing clips, it is added at the end.If the value of clipIndex is equal to 0, meanwhile the timeline contain themeLeader,the return object is NULL.If the value of clipIndex is more or equal to the getClipCount() of this track, meanwhile the timeline contain themeTrailer,the return object is NULL.
Parameters need to meet (0 <= trimIn < trimOut). If trimOut is bigger than the file original duration, it will be played in the last frame
See also
appendClip

◆ insertTimelineClip() [1/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.insertTimelineClip ( NvsTimeline  timeline,
int  clipIndex 
)
inline

Inserts a timeline clip at the specified clip index on the video track.

Parameters
timelineThe timeline object to be inserted.
clipIndexIndex of the inserted clip.
Returns
Returns the inserted video clip object. insertTimelineClip() inserts a clip before the one indexed by clipIndex.
Warning
This interface will cause the streaming engine state to jump to the engine stop state. For details, please refer to Engine Change.
If index is greater than the number of existing clips, it is added at the end.If the value of clipIndex is equal to 0, meanwhile the timeline contain themeLeader,the return object is NULL.If the value of clipIndex is more or equal to the getClipCount() of this track, meanwhile the timeline contain themeTrailer,the return object is NULL.
See also
appendClip
Since
2.24.0

◆ insertTimelineClip() [2/2]

NvsVideoClip com.meicam.sdk.NvsVideoTrack.insertTimelineClip ( NvsTimeline  timeline,
long  trimIn,
long  trimOut,
int  clipIndex 
)
inline

Inserts a timeline clip of the specified length at the specified clip index on the video track.

Parameters
timelineThe timeline object to be inserted.
clipIndexIndex of the inserted clip.
trimInTrim in point of video clips (in microseconds)
trimOutTrim out point of video clips (in microseconds))
Returns
Returns the inserted video clip object.
Warning
This interface will cause the streaming engine state to jump to the engine stop state. For details, please refer to Engine Change.
If index is greater than the number of existing clips, it is added at the end.If the value of clipIndex is equal to 0, meanwhile the timeline contain themeLeader,the return object is NULL.If the value of clipIndex is more or equal to the getClipCount() of this track, meanwhile the timeline contain themeTrailer,the return object is NULL.
Parameters need to meet (0 <= trimIn < trimOut). If trimOut is bigger than the inserted timeline duration, it will be played in the last frame
See also
appendTimelineClip
Since
2.24.0

◆ isOriginalRender()

boolean com.meicam.sdk.NvsVideoTrack.isOriginalRender ( )
inline

Gets whether the original scale rendering mode is turned on.

Returns
Turn on or not.
See also
setEnableOriginalRender

◆ removeAnimatedSticker()

NvsTrackAnimatedSticker com.meicam.sdk.NvsVideoTrack.removeAnimatedSticker ( NvsTrackAnimatedSticker  animatedSticker)
inline

Remove an animated sticker on the track.

Parameters
animatedStickerThe NvsTrackAnimatedSticker object which will be removed
Returns
Return the next NvsTrackAnimatedSticker object.
See also
addAnimatedSticker

◆ removeCaption()

NvsTrackCaption com.meicam.sdk.NvsVideoTrack.removeCaption ( NvsTrackCaption  caption)
inline

Remove the caption on the track.

Parameters
captiontrack caption object which removed
Returns
Returns the next NvsTrackCaption object.
See also
addCaption

◆ removeCompoundCaption()

NvsTrackCompoundCaption com.meicam.sdk.NvsVideoTrack.removeCompoundCaption ( NvsTrackCompoundCaption  caption)
inline

Remove compound caption from the track.

Parameters
captiontrack compound caption object which to be removed
Returns
Returns the next compound caption object.
Since
2.9.0
See also
addCompoundCaption

◆ removeTrackVideoFx()

NvsTrackVideoFx com.meicam.sdk.NvsVideoTrack.removeTrackVideoFx ( NvsTrackVideoFx  videoFx)
inline

Remove a track video effect from the track.

Parameters
videoFxThe NvsTrackVideoFx object which will be removed
Returns
Returns the next NvsTrackVideoFx object of current track video effect which has removed.

◆ setBuiltinTransition()

NvsVideoTransition com.meicam.sdk.NvsVideoTrack.setBuiltinTransition ( int  srcClipIndex,
String  transitionName 
)
inline

Sets built-in transitions.

Parameters
srcClipIndexSource video clip index.
transitionNameThe name of the transition. To get the video transition name, please refer to getAllBuiltinVideoTransitionNames() or built-in effect name list. Note: If the transition name is set to a null string, the original transition will be deleted.
Returns
Returns the video transition object. If the transitionName is set to a null string (namely, to delete the original transition), return null.

For instance: There are four video clips on the track in the below figure, which are C1, C2, C3, and C4, respectively, where clip C1, C2, and C3 are adjacent, and there is a gap between clip C3 and C4. If a transition is set between C1 and C2, it becomes:

               NvsVideoTrack m_videoTrack;//m_videoTrack omitted creation
               int clipCount = m_videoTrack.getClipCount();
               NvsVideoTransition m_videoTransition;
               m_videoTransition = m_videoTrack.setBuiltinTransition(0,transitionName) //srcClipIndex takes the range of (1, clipCount-1), and transitionName is the name of the transition to be set.

If a transition is added between C2 and C3, the index is 1. The transition can only be set between two adjacent clips. Since there is a gap between the C3 and C4 clip in the above figure, it is not possible to add a transition between the two clips.

Warning
This interface will cause the streaming engine state to jump to the engine stop state. For details, please refer to Engine Change.
See also
setPackagedTransition

◆ setCustomVideoTransition()

NvsVideoTransition com.meicam.sdk.NvsVideoTrack.setCustomVideoTransition ( int  srcClipIndex,
NvsCustomVideoTransition.Renderer  customVideoTransitionRender 
)
inline

Sets custom video transition.

Parameters
srcClipIndexSource video clip index.
customVideoTransitionRenderUser-implemented custom video effects renderer interface;
Returns
Returns the video transition object.
Warning
This interface will cause the streaming engine state to jump to the engine stop state. For details, please refer to Engine Change.
See also
setBuiltinTransition

◆ setEnableOriginalRender()

void com.meicam.sdk.NvsVideoTrack.setEnableOriginalRender ( boolean  enable)
inline

Turn on special effect rendering based on the original scale of the video track.

Parameters
EnableTurn on or not.
See also
IsOriginalRender

◆ setPackagedTransition()

NvsVideoTransition com.meicam.sdk.NvsVideoTrack.setPackagedTransition ( int  srcClipIndex,
String  packageId 
)
inline

Sets resource package transition.

Parameters
srcClipIndexSource video clip index.
packageIdTransition resource package ID. If the package Id is null, the transition at the video clip is deleted; if the package Id is set to "theme", the transition at the video clip is set to the one of the current theme. If there is no theme, the transition at the video clip should be deleted.
Returns
Returns the video transition object.
Warning
This interface will cause the streaming engine state to jump to the engine stop state. For details, please refer to Engine Change.
See also
setBuiltinTransition

◆ setProxyScale()

void com.meicam.sdk.NvsVideoTrack.setProxyScale ( NvsRational  proxyScale)
inline

Disable the current track from rendering at the proxy scale.

Parameters
disableDisable or not.
See also
isProxyScaleDisable
Since
2.19.1

◆ updateAudioForTrackVideoFx()

void com.meicam.sdk.NvsVideoTrack.updateAudioForTrackVideoFx ( )
inline

Update the audio information in the current track effect.

Returns
Since
3.8.0

Member Data Documentation

◆ TRACK_ADD_VIDEO_FX_FLAGS_RENDER_AT_CLIP_RAW_FILTER

final int com.meicam.sdk.NvsVideoTrack.TRACK_ADD_VIDEO_FX_FLAGS_RENDER_AT_CLIP_RAW_FILTER = 1
static

Render this effect when rendering the raw filter on video clip


The documentation for this class was generated from the following file: