Contact us

tel:15797766463

mail:business@seeshiontech.com

中文
English
中文
登录/注册

{user.username}

ID: {user.id}

<span><a href="/docs/index.html">首页</a> > <a href="/docs/en-us/editor/group_123.html">SDK</a> > <a href="/docs/en-us/editor/group_130.html">Android SDK</a> > SXTrack</span>

SXTrack

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:

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.