API Class Name | Description |
TAVEditor | SDK operation entry class. |
Method | Parameters | Description |
addMotionEffect(String path, long startOffset, long duration) | path: motion effect path.startOffset: start time (microseconds).duration: duration (microseconds). | Adds a motion effect and returns its ID. |
addMotionEffect(String path, long startOffset, long duration, int scaleMode) | path: motion effect path.startOffset: start time (microseconds).duration: duration (microseconds).scaleMode: scale mode. | Adds a motion effect with a scale mode. |
updateMotionEffectPlayRange(int motionId, long startOffset, long duration) | motionId: motion effect ID.startOffset: new start time (microseconds).duration: new duration (microseconds). | Updates the playback time range of a motion effect. |
removeMotionEffect(int motionId) | motionId: motion effect ID. | Removes a motion effect. |
Constant | Value | Description |
SCALE_MODE_FIT | 0 | Fit mode. |
SCALE_MODE_FILL | 1 | Fill mode. |
// Basic add methodint motionId = editor.addMotionEffect(path, startOffset, duration);// Add method with scale modeint motionId = editor.addMotionEffect(path, startOffset, duration, scaleMode);
/*** Adjusts the playback time of a motion effect** @param motionId motion effect ID* @param startOffset start time (microseconds)* @param duration duration (microseconds)*/editor.updateMotionEffectPlayRange(motionId, startOffset, duration);
/*** Removes a motion effect** @param motionId motion effect ID*/editor.removeMotionEffect(motionId);
フィードバック