Contact us
tel:15797766463
mail:business@seeshiontech.com
Update time : 2020-08-14 16:13:43
Created and deleted by the SXEditManager instance, SXTrack includes SXMediaTrack, SXStickerTrack and SXTextTrack, and its timeline is managed by SXTrackGroup.
SXMediaTrack
Video files, GIFs or static images can be added to SXMediaTrack. Only the effects that are supported by local media track can be added to the media track such as:
Filter
Video animation
Color grading
Cropping footage
Mask
Cropping footage
/**
* Set mask shape.
* @param shapes The array of mask shape, deleting mask should pass null parameter.
*/
public void setMaskShape(SXShape[] shapes)
/**
* Inverse mask area or not.
* @param inverse true:inverse;false:no inverse
*/
public void setInverseMaskShape(boolean inverse)
/**
SXTextTrack
You can set the path of text font file after creating the text track. The font file in SXEditOptions will be used as default font path. But if the font file can not be found, the text track will not be drawn successfully. Besides, you can set text styles and basic properties of text, add text bubble and character animations for your text track as well.
/**Apply the preset text style, and you can modify the style.
* @param resourcePath Resource path of text style.
* @return Error code.
*/
public int setTextStyle(String resourcePath)
/**
* Reset text style
*/
public void resetTextStyle()
/**
* Set text bubble or replace the default text bubble.
* @param resourcePath The resource path of text bubble.
* @return Error code.
*/
int setBubble(String resourcePath)
/**
* Remove text bubble.
*/
void removeBubble()
SXStickerTrack
You can add track animation to SXStickerTrack.