Last updated: 2022-11-17 16:50:16
TXVideoEditer
Basic editing APIs
API |
Description |
TXVideoEditer |
The TXVideoEditer constructor. |
setVideoPath |
Specifies the video path. This API works in v18 or later on Android. |
setCustomVideoProcessListener |
Sets the custom image processing callback (not supported in UGSV Lite). |
release |
Releases the resources after a video is processed or processing is canceled. |
Effect APIs
API |
Description |
setSpecialRatio |
Sets the filter strength (not supported in UGSV Lite). |
setFilter |
Sets the filter (not supported in UGSV Lite). |
setFilter |
Sets multiple filters (not supported in UGSV Lite). |
setBeautyFilter |
Sets the beautification and brightening strength (not supported in UGSV Lite). |
startEffect |
Sets the start time for an effect (not supported in UGSV Lite). |
stopEffect |
Sets the end time for an effect (not supported in UGSV Lite). |
deleteLastEffect |
Removes the last effect applied (not supported in UGSV Lite). |
deleteAllEffect |
Removes all effects (not supported in UGSV Lite). |
Video generation APIs
Image transition APIs
API |
Description |
setPictureList |
Specifies the images that are to be converted to a video (not supported in UGSV Lite). |
setPictureTransition |
Sets the transition effects (not supported in UGSV Lite). |
Time effect APIs
API |
Description |
setSpeedList |
Sets the playback speed for multiple video segments (not supported in UGSV Lite). |
setRepeatPlay |
Loops multiple video segments (not supported in UGSV Lite). |
setReverse |
Plays a video backwards (not supported in UGSV Lite). |
Preview APIs
Preprocessing APIs
Background music APIs
API |
Description |
setBGM |
Sets the background music (not supported in UGSV Lite). |
setBGMLoop |
Sets whether to loop the background music (not supported in UGSV Lite). |
setBGMAtVideoTime |
Sets the time point of the video to start playing music (not supported in UGSV Lite). |
setBGMStartTime |
Sets the start and end time of the background music (not supported in UGSV Lite). |
setBGMVolume |
Sets the volume of the background music (not supported in UGSV Lite). |
setBGMFadeInOutDuration |
Sets fade-in and fade-out effects for the background music (not supported in UGSV Lite). |
setVideoVolume |
Sets the audio volume of the video (not supported in UGSV Lite). |
Sticker APIs (not supported in UGSV Lite)
Watermark APIs
API |
Description |
setWaterMark |
Sets a global watermark (not supported in UGSV Lite). |
setTailWaterMark |
Adds a watermark to the closing segment (not supported in UGSV Lite). |
Thumbnail APIs
TXVideoGenerateListener
Editing callback APIs
TXVideoPreviewListener
Preview callback APIs
TXVideoPreviewListenerEx
Preview callback APIs
TXVideoProcessListener
Preprocessing callback APIs
TXVideoCustomProcessListener
Custom processing callback APIs
API |
Description |
onTextureCustomProcess |
The texture callback. You can process the video by yourself in this callback. |
onTextureDestroyed |
The texture releasing callback. You can release the OpenGL resources in this callback. |
TXThumbnailListener
Thumbnail callback APIs
TXVideoEditConstants
Definitions of editing key types
Error Codes
Editing result
Message |
Code |
Description |
GENERATE_RESULT_OK |
0 |
The video was generated successfully. |
GENERATE_RESULT_FAILED |
-1 |
Failed to generate the video. |
GENERATE_RESULT_LICENCE_VERIFICATION_FAILED |
-5 |
Failed to generate the video due to a license verification error. |
Preview
Message |
Code |
Description |
PREVIEW_ERROR_VIDEO_DECODE_FAIL |
-1 |
Failed to preview the video due to a decoding error. |
Was this page helpful?