public interface AliyunIEditor
Modifier and Type | Method and Description |
---|---|
int |
addAnimationFilter(EffectFilter filter)
Adds an animated filter.
|
int |
addFrameAnimation(ActionBase action)
Adds an animation to a stream or material.
|
int |
addImage(EffectPicture picture)
Adds a static image.
|
int |
addRunningDisplayMode(VideoDisplayMode mode,
int streamId,
long startTimeMills,
long durationMills)
Sets the video display mode during a time period.
|
int |
addTailWaterMark(java.lang.String imagePath,
float sizeX,
float sizeY,
float posX,
float posY,
long durationUs)
Adds a watermark to the end of the video.
|
int |
applyBlurBackground(int streamId,
long startTimeMills,
long durationMills,
float blurRadius)
Adds a blurred background.
|
int |
applyDub(EffectBean effect)
Adds voiceover to a time period.
|
int |
applyFilter(EffectBean effect)
Applies a filter.
|
int |
applyMusic(EffectBean effect)
Adds music to a time period.
|
int |
applyMusicMixWeight(int id,
int weight)
Sets the mixing weight of an audio stream.
|
int |
applyMusicWeight(int id,
int weight)
Sets the volume of an audio stream.
|
int |
applyMV(EffectBean effect)
Applies an MV effect.
|
int |
applySourceChange()
Applies changes to video clips.
|
int |
applyWaterMark(java.lang.String imgPath,
float sizeX,
float sizeY,
float posX,
float posY)
Applies a watermark.
|
int |
audioEffect(int id,
com.aliyun.editor.AudioEffectType type,
int weight)
Adds a sound effect.
|
int |
cancelCompose()
Cancels the composition process.
|
void |
clearAllAnimationFilter()
Removes all animated filters.
|
int |
compose(AliyunVideoParam param,
java.lang.String outputPath,
AliyunIComposeCallBack callback)
Starts the composition process.
|
AliyunPasterManager |
createPasterManager()
Creates a sticker manager.
|
int |
deleteBlurBackground(int streamId,
int id)
Deletes a blurred background.
|
int |
deleteTimeEffect(int id)
Deletes a timeline effect.
|
int |
denoise(int id,
boolean needDenoise)
Denoises an audio stream.
|
int |
draw(long time)
Draws a frame at a point in time.
|
com.aliyun.log.struct.AliyunLogInfo |
getAliyunLogInfo()
Gets log information.
|
long |
getClipStartTime(int clipIndex) |
long |
getCurrentPlayPosition()
Gets the current position on the playback timeline.
|
long |
getCurrentStreamPosition()
Gets the current position on the stream timeline.
|
long |
getDuration()
Gets the duration of the playback timeline.
|
int |
getFilterLastApplyId()
Gets the id of the last added filter.
|
int |
getMusicLastApplyId()
Gets the id of the last added music effect.
|
int |
getMVLastApplyId()
Gets the id of the last added MV effect.
|
android.graphics.Paint |
getPaintLastApply()
Gets the id of the last used paint.
|
AliyunPasterRender |
getPasterRender()
Gets the underlying renderer that is used to render stickers.
|
com.aliyun.svideo.sdk.internal.project.AliyunIProjectInfo |
getProjectInfo() |
int |
getRotation()
Gets the angle of rotation.
|
AliyunIClipConstructor |
getSourcePartManager()
Gets the clip manager.
|
long |
getStreamDuration()
Gets the duration of the video stream.
|
com.aliyun.editor.TimeEffectType |
getTimeEffect()
Gets the timeline effect.
|
int |
getVideoHeight()
Gets the video height.
|
int |
getVideoWidth()
Gets the video width.
|
int |
init(android.view.SurfaceView surfaceView,
android.content.Context context)
Initializer.
|
int |
invert()
Starts playback backwards.
|
boolean |
isAudioSilence()
Gets whether playback is muted.
|
boolean |
isPaused()
Gets whether playback is paused.
|
boolean |
isPlaying() |
AliyunICanvasController |
obtainCanvasController(android.content.Context context,
int w,
int h)
Gets a doodle controller.
|
void |
onDestroy()
The final lifecycle callback.
|
int |
pause()
Pauses playback.
|
int |
play()
Starts playback.
|
int |
rate(float rate,
long startTimeMills,
long durationMills,
boolean needOriginDuration)
Sets the playback rate.
|
void |
removeAnimationFilter(EffectFilter filter)
Removes an animated filter.
|
int |
removeAudioEffect(int id,
com.aliyun.editor.AudioEffectType type)
Removes a sound effect.
|
int |
removeDub(EffectBean effect)
Removes voiceover.
|
int |
removeFrameAnimation(ActionBase action)
Removes an animation.
|
void |
removeImage(EffectPicture picture)
Removes a static image.
|
int |
removeMusic(EffectBean effect)
Removes music.
|
int |
removeRunningDisplayMode(int streamId,
int id)
Removes the video display mode during a time period.
|
int |
repeat(int times,
long startTimeMills,
long durationMills,
boolean needOriginDuration)
Repeats playback.
|
int |
replay()
Restarts playback.
|
int |
resetEffect(com.aliyun.editor.EffectType effectType)
Removes a type of effect.
|
int |
resume()
Resumes playback.
|
int |
saveEffectToLocal()
Saves all effects to a local path.
|
int |
seek(long time)
Seeks to a point in time.
|
void |
setAnimationRestoredListener(OnAnimationFilterRestored li)
Sets the callback when an animated filter is restored.
|
void |
setAudioSilence(boolean silence)
Mutes or unmutes playback.
|
int |
setDisplayMode(VideoDisplayMode mode)
Sets the video display mode.
|
int |
setDisplayView(android.view.SurfaceView surfaceView)
Sets the display view.
|
int |
setDisplayView(android.view.TextureView textureView)
Sets the display view.
|
int |
setFillBackgroundColor(int color)
Sets the background color.
|
void |
setMonitorSurfaceChange(boolean monitor)
Sets whether to monitor the change of the surface.
|
void |
setOutputPath(java.lang.String path)
Sets the output path.
|
int |
setTransition(int index,
TransitionBase transition)
Sets the transition duration.
|
int |
setTransition(java.util.Map<java.lang.Integer,TransitionBase> transitions)
Sets the transition duration.
|
int |
setVolume(int volume)
Sets volume.
|
int |
stop()
Stops playback.
|
java.lang.String |
version()
Gets the SDK version.
|
void setMonitorSurfaceChange(boolean monitor)
init(SurfaceView, Context)
.monitor
- int init(android.view.SurfaceView surfaceView, android.content.Context context)
surfaceView
- AliyunErrorCode.ERROR_PROJECT_NULL
AliyunErrorCode.ERROR_LICENSE_FAILED
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_PARAM
AliyunEditorErrorCode.SVIDEO_EDITOR_INIT_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_CREATE_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_RE_CREATE
AliyunEditorErrorCode.SVIDEO_EDITOR_SET_DISPLAY_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
AliyunEditorErrorCode.ALIVC_FRAMEWORK_MUXER_ERROR_CREAT_OUTPUT
AliyunEditorErrorCode.ALIVC_FRAMEWORK_MUXER_ERROR_STATE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_MUXER_ERROR_INVALIDATE_PARAM
AliyunEditorErrorCode.ALIVC_FRAMEWORK_MUXER_ERROR_FIND_ENCODER
AliyunEditorErrorCode.ALIVC_FRAMEWORK_MUXER_ERROR_NEW_STREAM
AliyunEditorErrorCode.ALIVC_FRAMEWORK_VIDEO_ENCODER_CREATE_ENCODER_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_VIDEO_ENCODER_ERROR_STATE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_ENCODER_ERROR_INPUT
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_ENCODER_WIDTHOUT_MATCH_ENCODER
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_ENCODER_ERROR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_PREPARE_ERROR
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_EDITORLAYOUT_INVALID_SIZE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_RENDER_INIT_SPEAKER_FAILED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_PARAM
if the resolution parameter is null or invalid in the import method.int setDisplayView(android.view.SurfaceView surfaceView)
init(SurfaceView, Context)
.surfaceView
- AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
if the initialization fails.
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_PARAM
if surfaceView is null.int setDisplayView(android.view.TextureView textureView)
init(SurfaceView, Context)
. It is recommended not to use TextureView if there is no special needs.textureView
- AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
if the initialization fails.
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_PARAM
if surfaceView is null.int play()
int replay()
int seek(long time)
time
- The point in time. Unit: microseconds.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_SEEK_IN_OFFSET
AliyunEditorErrorCode.SVIDEO_EDITOR_SEEK_ERROR
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_SEEK_FAILED
int draw(long time)
time
- The point in time. Unit: microseconds.AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
int pause()
int resume()
int stop()
long getCurrentStreamPosition()
long getCurrentPlayPosition()
long getStreamDuration()
long getDuration()
boolean isPlaying()
boolean isPaused()
int getVideoWidth()
int getVideoHeight()
int getRotation()
boolean isAudioSilence()
void setAudioSilence(boolean silence)
silence
- A value of true indicates mute playback. A value of false indicates unmute playback.int setVolume(int volume)
volume
- Valid values: [0, 100]. 0 indicates muted. 100 indicates the maximum volume. Default is 50.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_CTL_INPUT_ERROR
int setDisplayMode(VideoDisplayMode mode)
int addRunningDisplayMode(VideoDisplayMode mode, int streamId, long startTimeMills, long durationMills)
setDisplayMode(VideoDisplayMode)
during the specified time period.mode
- streamId
- The id of the stream that this mode applies to.startTimeMills
- The start time of the mode in the stream. Unit: milliseconds.durationMills
- The duration of the mode. Unit: milliseconds.int removeRunningDisplayMode(int streamId, int id)
streamId
- The id of the stream that this mode applies to.id
- The id of the effect to be removed. Use addRunningDisplayMode(VideoDisplayMode, int, long, long)
to get the effect id.int setFillBackgroundColor(int color)
setDisplayMode(VideoDisplayMode)
is set to VideoDisplayMode.FILL
.color
- The background color in ARGB format. An 8-bit integer type.AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
setDisplayMode(VideoDisplayMode)
,
VideoDisplayMode
int applyFilter(EffectBean effect)
effect
- The filter to be added. This parameter contains the path and id of the effect. null indicates remove all filters.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_INVALID_OPTION
int applyMV(EffectBean effect)
effect
- The MV effect to be added. This parameter contains the path and id of the effect. null indicates remove all MV effects. Call EffectBean.getMvAudioId()
to get the id of the MV effect.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunErrorCode.ERROR_LICENSE_FAILED
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.SVIDEO_EDITOR_PAUSE_ERROR
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_INVALID_OPTION
int applyWaterMark(java.lang.String imgPath, float sizeX, float sizeY, float posX, float posY)
imgPath
- The path of the watermark image.sizeX
- sizeY
- posX
- posY
- AliyunErrorCode.ERROR_EFFECT_USE_FAILED
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.SVIDEO_EDITOR_VIEW_TYPE_NOT_SUPPORTED
int addImage(EffectPicture picture)
picture
- The bitmap image with arguments x, y, w, h indicating its relative position.AliyunErrorCode.ERROR_EFFECT_USE_FAILED
AliyunErrorCode.ERROR_TRES_PLAYER_UNPREPARED
AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunErrorCode.ERROR_PARAM_IMAGE_FILE_PATH_INVALID
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.SVIDEO_EDITOR_VIEW_TYPE_NOT_SUPPORTED
void removeImage(EffectPicture picture)
picture
- The bitmap image with arguments x, y, w, h indicating its relative position.int addAnimationFilter(EffectFilter filter)
filter
- AliyunErrorCode.ERROR_EFFECT_USE_FAILED
AliyunErrorCode.ERROR_INVALID_ARGUMENTS
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
int addFrameAnimation(ActionBase action)
action
- ActionBase
int removeFrameAnimation(ActionBase action)
action
- void removeAnimationFilter(EffectFilter filter)
filter
- void clearAllAnimationFilter()
int applyMusic(EffectBean effect)
effect
- The music to be added. This parameter contains the path and id of the effect.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_PARAM
AliyunEditorErrorCode.SVIDEO_EDITOR_PAUSE_ERROR
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_FILE_STREAM_LIST_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_OPTION_LIST_FAILED
EffectBean
int applyDub(EffectBean effect)
effect
- The voiceover to be added. This parameter contains the path and id of the effect.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_PARAM
AliyunEditorErrorCode.SVIDEO_EDITOR_PAUSE_ERROR
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_FILE_STREAM_LIST_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_OPTION_LIST_FAILED
EffectBean
int removeMusic(EffectBean effect)
effect
- AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_PAUSE_ERROR
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_FILE_STREAM_LIST_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_OPTION_LIST_FAILED
EffectBean
int removeDub(EffectBean effect)
effect
- AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_PAUSE_ERROR
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_FILE_STREAM_LIST_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_OPTION_LIST_FAILED
EffectBean
int getFilterLastApplyId()
AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
int getMVLastApplyId()
AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
int getMusicLastApplyId()
AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
android.graphics.Paint getPaintLastApply()
int applyMusicMixWeight(int id, int weight)
id
- The id of the stream whose weight is to be changed. Use EffectBean.getId()
to get the stream id.weight
- Valid values: [0, 100].AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_OPTION_LIST_FAILED
int applyMusicWeight(int id, int weight)
id
- The id of the stream whose volume is to be changed. Use EffectBean.getId()
to get the stream id. To change the volume of the source stream, use getSourcePartManager()
to get the clip manager AliyunClipConstructor
, use AliyunClipConstructor.getAllClips()
to
get the complete list of clips, and then use AliyunClip.getId()
to get all clips in the source stream by id. Use these ids to change
the volume of all clips.weight
- Valid values: [0, 100]AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_OPTION_LIST_FAILED
int denoise(int id, boolean needDenoise)
id
- The id of the audio stream.needDenoise
- Whether to enable denoising.AliyunPasterManager createPasterManager()
AliyunPasterManager
AliyunPasterRender getPasterRender()
AliyunPasterRender
AliyunICanvasController obtainCanvasController(android.content.Context context, int w, int h)
context
- Recommended value: applicationContext.w
- The width of the canvas.h
- The height of the canvas.AliyunICanvasController
void onDestroy()
int setTransition(java.util.Map<java.lang.Integer,TransitionBase> transitions)
transitions
- The collection of transitions in a map.
AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunErrorCode.ERROR_PARAM_TRANSITION_DURATION_INVALID
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_PARAM
AliyunEditorErrorCode.SVIDEO_EDITOR_PREPARE_ERROR
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_EDITORLAYOUT_INVALID_SIZE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_RENDER_INIT_SPEAKER_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_VIDEO_ENCODER_ERROR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_START_ERROR
int setTransition(int index, TransitionBase transition)
index
- The index of a video clip.transition
- TransitionBase
AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunErrorCode.ERROR_PARAM_TRANSITION_DURATION_INVALID
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_PARAM
AliyunEditorErrorCode.SVIDEO_EDITOR_PREPARE_ERROR
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_EDITORLAYOUT_INVALID_SIZE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_RENDER_INIT_SPEAKER_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_VIDEO_ENCODER_ERROR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_START_ERROR
void setAnimationRestoredListener(OnAnimationFilterRestored li)
init(SurfaceView, Context)
is invoked bacause init(SurfaceView, Context)
contains the logic to restore animated filters.li
- java.lang.String version()
com.aliyun.log.struct.AliyunLogInfo getAliyunLogInfo()
void setOutputPath(java.lang.String path)
path
- int rate(float rate, long startTimeMills, long durationMills, boolean needOriginDuration)
rate
- The playback rate.startTimeMills
- The start time when this rate takes effect. Unit: microseconds.durationMills
- The duration when this rate remains valid. Unit: microseconds.needOriginDuration
- Whether to retain the original video length.
AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_PARAM
AliyunEditorErrorCode.SVIDEO_EDITOR_PREPARE_ERROR
AliyunEditorErrorCode.SVIDEO_EDITOR_TIME_EFFECT_NOT_SUPPORT
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_INVALID_OPTION
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_FILE_STREAM_LIST_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_OPTION_LIST_FAILED
int repeat(int times, long startTimeMills, long durationMills, boolean needOriginDuration)
times
- The number of repeats.startTimeMills
- The start time of the repeats. Unit: microseconds.durationMills
- The duration of each repeat. Unit: microseconds.needOriginDuration
- Whether to retain the original video length.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_PARAM
AliyunEditorErrorCode.SVIDEO_EDITOR_PREPARE_ERROR
AliyunEditorErrorCode.SVIDEO_EDITOR_TIME_EFFECT_NOT_SUPPORT
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_INVALID_OPTION
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_FILE_STREAM_LIST_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_OPTION_LIST_FAILED
int invert()
AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_PREPARE_ERROR
AliyunEditorErrorCode.SVIDEO_EDITOR_TIME_EFFECT_NOT_SUPPORT
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_FILE_STREAM_LIST_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_OPTION_LIST_FAILED
int deleteTimeEffect(int id)
id
- The id of the timeline effect to be deleted.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_PARAM
AliyunEditorErrorCode.SVIDEO_EDITOR_PREPARE_ERROR
AliyunEditorErrorCode.SVIDEO_EDITOR_TIME_EFFECT_NOT_SUPPORT
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_INVALID_OPTION
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_FILE_STREAM_LIST_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_OPTION_LIST_FAILED
int addTailWaterMark(java.lang.String imagePath, float sizeX, float sizeY, float posX, float posY, long durationUs)
imagePath
- The path of the watermark image.sizeX
- The width of the watermark image relative to the screen.sizeY
- The height of the watermark image relative to the screen.posX
- The x coordinate of the watermark image relative to the screen.posY
- The y coordinate of the watermark image relative to the screen.durationUs
- The display duration of the watermark image. Unit: microseconds.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_PREPARE_ERROR
AliyunEditorErrorCode.SVIDEO_EDITOR_FILE_NOT_EXIST
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_INVALID_OPTION
int resetEffect(com.aliyun.editor.EffectType effectType)
effectType
- The type of effect to be removed.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_PREPARE_ERROR
AliyunEditorErrorCode.ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_FILE_STREAM_LIST_FAILED
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_OPTION_LIST_FAILED
EffectType
long getClipStartTime(int clipIndex)
clipIndex
- The index of a clip.AliyunIClipConstructor getSourcePartManager()
com.aliyun.svideo.sdk.internal.project.AliyunIProjectInfo getProjectInfo()
com.aliyun.editor.TimeEffectType getTimeEffect()
int applySourceChange()
int saveEffectToLocal()
int applyBlurBackground(int streamId, long startTimeMills, long durationMills, float blurRadius)
streamId
- The id of the stream that the blurred background is added to.startTimeMills
- The time when the blurred background is set to visible. Unit: milliseconds.durationMills
- The display duration of the blurred background. Unit: milliseconds.blurRadius
- The blur radius. Valid values: [0,29]int deleteBlurBackground(int streamId, int id)
streamId
- The id of the stream that the blurred background is added to.id
- The id of the effect to be deleted.int compose(AliyunVideoParam param, java.lang.String outputPath, AliyunIComposeCallBack callback)
param
- The video parameters.outputPath
- The output path.callback
- The callback of the composition.int cancelCompose()
int audioEffect(int id, com.aliyun.editor.AudioEffectType type, int weight)
id
- The id of the audio stream that the sound effect is added to.type
- The effect type AudioEffectType
.weight
- The weight of the effect. Valid values: [0,100].int removeAudioEffect(int id, com.aliyun.editor.AudioEffectType type)
id
- The id of the sound effect to be removed.type
- The effect type AudioEffectType
.