public interface AliyunIEditor
Modifier and Type | Method and Description |
---|---|
int |
addAnimationFilter(EffectFilter filter)
Deprecated.
from v3.27.0,use
addAnimationFilter(TrackEffectFilter) instead |
int |
addAnimationFilter(TrackEffectFilter filter)
Adds an animated filter.
|
int |
addFrameAnimation(ActionBase action)
Adds an animation to a stream or material.
|
int |
addImage(EffectPicture picture)
Deprecated.
from v3.27.0,use the class
com.aliyun.svideosdk.editor.impl.AliyunPasterControllerImage from getPasterManager() instead. |
int |
addRunningDisplayMode(VideoDisplayMode mode,
int streamId,
long startTimeMills,
long durationMills)
Deprecated.
|
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 |
addTailWaterMark(TrackEffectWaterMark trackEffectWaterMark,
long duration,
java.util.concurrent.TimeUnit timeUnit)
Adds a watermark to the end of the video.
|
int |
applyAudioEffect(int id,
AudioEffectType type,
int weight)
Adds a sound effect.
|
int |
applyBlurBackground(int streamId,
long startTimeMills,
long durationMills,
float blurRadius)
Adds a blurred background.
|
int |
applyDub(EffectBean effect)
Deprecated.
from v3.27.0,use
applyDub(TrackAudioStream) instead. |
int |
applyDub(TrackAudioStream effectStream)
Adds voiceover to a time period.
|
int |
applyFilter(EffectBean effect)
Deprecated.
from v3.27.0, use
applyFilter(TrackEffectFilter) instead. |
int |
applyFilter(TrackEffectFilter effectFilter)
Applies a filter.
|
int |
applyLutFilter(LUTEffectBean effect)
Added in v3.27.0
|
int |
applyMusic(EffectBean effect)
Deprecated.
from v3.27.0,use
applyMusic(TrackAudioStream) instead. |
int |
applyMusic(TrackAudioStream effectStream)
Adds music to a time period.
|
int |
applyMusicMixWeight(int id,
int weight)
Deprecated.
|
int |
applyMusicWeight(int id,
int weight)
Sets the volume of an audio stream.
|
int |
applyMV(EffectBean effect)
Deprecated.
from v3.27.0, use
applyMV(TrackEffectMV) instead. |
int |
applyMV(TrackEffectMV 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 |
applyWaterMark(TrackEffectWaterMark trackEffectWaterMark)
Applies a watermark.
|
int |
audioEffect(int id,
AudioEffectType type,
int weight)
Deprecated.
from v3.27.0,use
applyAudioEffect(int, AudioEffectType, int) instead. |
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()
Deprecated.
from v3.27.0,use
getPasterManager() instead. |
AliyunRollCaptionComposer |
createRollCaptionComposer()
Creates a roll caption composer.
|
int |
deleteBlurBackground(int streamId,
int id)
Deletes a blurred background.
|
int |
deleteTimeEffect(int id)
Deletes a timeline effect.
|
int |
denoise(int id,
boolean needDenoise)
Deprecated.
|
int |
denoise(int id,
int denoiseWeight)
Denoises an audio stream.
|
int |
draw(long time)
Draws a frame at a point in time.
|
int |
draw(long time,
java.util.concurrent.TimeUnit timeUnit)
Draws a frame at a point in time.
|
AliyunLogInfo |
getAliyunLogInfo()
Gets log information.
|
long |
getClipStartTime(int clipIndex) |
Bitmap |
getCurrentFrame()
Get current frame image.
|
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.
|
AliyunEditorProject |
getEditorProject()
Added in v3.23.0
|
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.
|
Paint |
getPaintLastApply()
Gets the id of the last used paint.
|
AliyunPasterManager |
getPasterManager()
Get the sticker manager
|
AliyunPasterRender |
getPasterRender()
Deprecated.
from v3.27.0,use
getPasterManager() instead. |
AliyunIPipManager |
getPipManager()
Added in v3.25.0
|
AliyunIPlayerController |
getPlayerController()
Get tht player controlelr interface
|
AliyunIProjectInfo |
getProjectInfo() |
int |
getRotation()
Gets the angle of rotation.
|
AliyunISourcePartManager |
getSourcePartManager()
Gets the clip manager.
|
long |
getStreamDuration()
Gets the duration of the video stream.
|
TimeEffectType |
getTimeEffect()
Gets the timeline effect.
|
int |
getVideoHeight()
Gets the video height.
|
int |
getVideoWidth()
Gets the video width.
|
int |
init(SurfaceView surfaceView,
Context context)
Initializer.
|
int |
init(SurfaceView surfaceView,
Context context,
int surfaceWidth,
int surfaceHeight)
Initializer
|
int |
invert()
Starts playback backwards.
|
boolean |
isAudioSilence()
Gets whether playback is muted.
|
boolean |
isPaused()
Gets whether playback is paused.
|
boolean |
isPlaying() |
AliyunICanvasController |
obtainCanvasController(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)
Deprecated.
from v3.27.0废弃, use
removeAnimationFilter(TrackEffectFilter) instead. |
void |
removeAnimationFilter(TrackEffectFilter filter)
Removes an animated filter.
|
int |
removeAudioEffect(int id,
AudioEffectType type)
Removes a sound effect.
|
int |
removeAudioFadeIn(int id)
added in v3.20
|
int |
removeAudioFadeOut(int id)
added in v3.20
|
int |
removeDub(EffectBean effect)
Deprecated.
from v3.27.0,use
removeDub(TrackAudioStream) instead. |
int |
removeDub(TrackAudioStream effectStream)
Removes voiceover.
|
int |
removeFilter()
Remove a filter.
|
int |
removeFrameAnimation(ActionBase action)
Removes an animation.
|
void |
removeImage(EffectPicture picture)
Deprecated.
from v3.27.0,use the class
com.aliyun.svideosdk.editor.impl.AliyunPasterControllerImage from getPasterManager() instead. |
int |
removeMusic(EffectBean effect)
Deprecated.
from v3.27.0,use
removeMusic(TrackAudioStream) } instead. |
int |
removeMusic(TrackAudioStream effectStream)
Removes music.
|
int |
removeRunningDisplayMode(int streamId,
int id)
Deprecated.
|
int |
repeat(int times,
long startTimeMills,
long durationMills,
boolean needOriginDuration)
Repeats playback.
|
int |
replay()
Restarts playback.
|
int |
resetEffect(EffectType effectType)
Removes a type of effect.
|
int |
resetVideoAugmentation(int streamId,
VideoAugmentationType type)
Added in v3.19.0
|
int |
resume()
Resumes playback.
|
int |
saveEffectToLocal()
Saves all effects to a local path.
|
int |
seek(long time)
Seeks to a point in time.
|
int |
seek(long time,
java.util.concurrent.TimeUnit timeUnit)
Seeks to a point in time.
|
void |
setAnimationRestoredListener(OnAnimationFilterRestored li)
Deprecated.
from v3.27.0,use
setOnAnimationRestoredListener(OnAnimationFilterRestoredListener) instead. |
int |
setAudioFadeIn(int id,
ShapeType shapeType,
long duration)
added in v3.20
|
int |
setAudioFadeOut(int id,
ShapeType shapeType,
long duration)
added in v3.20
|
void |
setAudioSilence(boolean silence)
Mutes or unmutes playback.
|
int |
setDisplayMode(VideoDisplayMode mode)
Sets the video display mode.
|
int |
setDisplayView(SurfaceView surfaceView)
Sets the display view.
|
int |
setDisplayView(TextureView textureView)
Sets the display view.
|
int |
setFillBackgroundColor(int color)
Sets the background color.
|
int |
setHorizontalFlip(int streamId,
boolean flip)
Added in v3.31.0
|
void |
setMonitorSurfaceChange(boolean monitor)
Sets whether to monitor the change of the surface.
|
void |
setOnAnimationRestoredListener(OnAnimationFilterRestoredListener li)
Sets the callback when an animated filter is restored.
|
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 |
setVideoAugmentation(int streamId,
VideoAugmentationType type,
float value)
Added in v3.19.0
|
int |
setVolume(int volume)
Sets volume.
|
int |
stop()
Stops playback.
|
int |
updateAnimationFilter(EffectFilter filter)
Deprecated.
from v3.27.0,use
updateAnimationFilter(TrackEffectFilter) instead |
int |
updateAnimationFilter(TrackEffectFilter filter)
update an animated filter params.
|
int |
updateCaption(AliyunCaption caption)
Added in v3.27.0
|
void |
updateCover(Source source)
Added in v3.25.0
|
int |
updateTransition(int clipIndex,
TransitionBase transitionBase)
update the custom transition.
|
java.lang.String |
version()
Gets the SDK version.
|
void setMonitorSurfaceChange(boolean monitor)
init(SurfaceView, Context)
.monitor
- int init(SurfaceView surfaceView, 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 init(SurfaceView surfaceView, Context context, int surfaceWidth, int surfaceHeight)
surfaceView
- context
- surfaceWidth
- surfaceHeight
- int setDisplayView(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(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.AliyunIPlayerController getPlayerController()
Added in v3.27.0
AliyunIPlayerController
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 seek(long time, java.util.concurrent.TimeUnit timeUnit)
Added in v3.27.0
time
- The point in time.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 draw(long time, java.util.concurrent.TimeUnit timeUnit)
time
- The point in time.AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
Bitmap getCurrentFrame()
int pause()
int resume()
int stop()
long getCurrentStreamPosition()
AliyunIPlayerController.getCurrentStreamPosition()
, NOTE, the new interface's time unit is millisecondslong getCurrentPlayPosition()
AliyunIPlayerController.getCurrentPlayPosition()
, NOTE, the new interface's time unit is millisecondslong getStreamDuration()
AliyunIPlayerController.getStreamDuration()
, NOTE, the new interface's time unit is millisecondslong getDuration()
AliyunIPlayerController.getDuration()
, NOTE, the new interface's time unit is millisecondsboolean 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)
@Deprecated 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.@Deprecated 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
@Deprecated int applyFilter(EffectBean effect)
applyFilter(TrackEffectFilter)
instead.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 applyFilter(TrackEffectFilter effectFilter)
Added in v3.27.0
effectFilter
- 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 removeFilter()
@Deprecated int applyMV(EffectBean effect)
applyMV(TrackEffectMV)
instead.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 applyMV(TrackEffectMV effect)
Added in v3.27.0
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 applyWaterMark(TrackEffectWaterMark trackEffectWaterMark)
Added in v3.27.0
trackEffectWaterMark
- The water mark beanAliyunErrorCode.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
TrackEffectWaterMark
@Deprecated int addImage(EffectPicture picture)
com.aliyun.svideosdk.editor.impl.AliyunPasterControllerImage
from getPasterManager()
instead.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
@Deprecated void removeImage(EffectPicture picture)
com.aliyun.svideosdk.editor.impl.AliyunPasterControllerImage
from getPasterManager()
instead.@Deprecated int addAnimationFilter(EffectFilter filter)
addAnimationFilter(TrackEffectFilter)
insteadfilter
- 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 addAnimationFilter(TrackEffectFilter filter)
Added in v3.27.0
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
@Deprecated int updateAnimationFilter(EffectFilter filter)
updateAnimationFilter(TrackEffectFilter)
insteadfilter
- 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 updateAnimationFilter(TrackEffectFilter filter)
Added in v3.27.0
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
- @Deprecated void removeAnimationFilter(EffectFilter filter)
removeAnimationFilter(TrackEffectFilter)
instead.filter
- void removeAnimationFilter(TrackEffectFilter filter)
Added in v3.27.0
filter
- void clearAllAnimationFilter()
@Deprecated int applyMusic(EffectBean effect)
applyMusic(TrackAudioStream)
instead.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 applyMusic(TrackAudioStream effectStream)
Added in v3.27.0, It's used to replace applyMusic(EffectBean)
. You could use EffectBean.toTrackAudioStream()
transform EffectBean
to TrackAudioStream
effectStream
- 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
TrackAudioStream
@Deprecated int applyDub(EffectBean effect)
applyDub(TrackAudioStream)
instead.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 applyDub(TrackAudioStream effectStream)
Added in v3.27.0, It's used to replace applyDub(EffectBean)
. You could use EffectBean.toTrackAudioStream()
transform EffectBean
to TrackAudioStream
effectStream
- 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
TrackAudioStream
@Deprecated int removeMusic(EffectBean effect)
removeMusic(TrackAudioStream)
} instead.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 removeMusic(TrackAudioStream effectStream)
Added in v3.27.0, It's used to replace removeMusic(EffectBean)
. You could use EffectBean.toTrackAudioStream()
transform EffectBean
to TrackAudioStream
effectStream
- 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
@Deprecated int removeDub(EffectBean effect)
removeDub(TrackAudioStream)
instead.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
TrackAudioStream
int removeDub(TrackAudioStream effectStream)
Added in v3.27.0, It's used to replace removeDub(EffectBean)
. You could use EffectBean.toTrackAudioStream()
transform EffectBean
to TrackAudioStream
effectStream
- 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
TrackAudioStream
int getFilterLastApplyId()
AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
int getMVLastApplyId()
AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
int getMusicLastApplyId()
AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
Paint getPaintLastApply()
@Deprecated 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 com.aliyun.svideosdk.common.impl.AliyunClipConstructor
, use com.aliyun.svideosdk.common.impl.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
@Deprecated int denoise(int id, boolean needDenoise)
Denoises an audio stream.(Deprecated after v3.19.0)
instead with #denoise(int,int)
id
- The id of the audio stream.needDenoise
- Whether to enable denoising.int denoise(int id, int denoiseWeight)
Denoises an audio stream.
Added in v3.19.0
id
- The id of the audio stream.denoiseWeight
- 0:close 100:max@Deprecated AliyunPasterManager createPasterManager()
getPasterManager()
instead.AliyunPasterManager
AliyunPasterManager getPasterManager()
Added in v3.27.0
AliyunPasterManager
AliyunRollCaptionComposer createRollCaptionComposer()
Creates a roll caption composer.
Added in v3.20.0
AliyunRollCaptionComposer
@Deprecated AliyunPasterRender getPasterRender()
getPasterManager()
instead.AliyunPasterRender
AliyunICanvasController obtainCanvasController(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
int updateTransition(int clipIndex, TransitionBase transitionBase)
transitionBase
- the custom Transition .
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
@Deprecated void setAnimationRestoredListener(OnAnimationFilterRestored li)
setOnAnimationRestoredListener(OnAnimationFilterRestoredListener)
instead.init(SurfaceView, Context)
is invoked bacause init(SurfaceView, Context)
contains the logic to restore animated filters.li
- void setOnAnimationRestoredListener(OnAnimationFilterRestoredListener li)
init(SurfaceView, Context)
is invoked bacause init(SurfaceView, Context)
contains the logic to restore animated filters.
Added in v3.27.0
li
- java.lang.String version()
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: milliseconds.durationMills
- The duration when this rate remains valid. Unit: milliseconds.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: milliseconds.durationMills
- The duration of each repeat. Unit: milliseconds.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 addTailWaterMark(TrackEffectWaterMark trackEffectWaterMark, long duration, java.util.concurrent.TimeUnit timeUnit)
Added in v3.27.0
trackEffectWaterMark
- The water mark beanduration
- The display duration of the watermark image.timeUnit
- Time UnitAliyunErrorCode.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
TrackEffectWaterMark
int resetEffect(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.AliyunISourcePartManager getSourcePartManager()
AliyunIProjectInfo getProjectInfo()
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()
@Deprecated int audioEffect(int id, AudioEffectType type, int weight)
applyAudioEffect(int, AudioEffectType, int)
instead.id
- The id of the audio stream that the sound effect is added to.type
- The effect type com.aliyun.svideosdk.editor.AudioEffectType
.weight
- The weight of the effect. Valid values: [0,100].int applyAudioEffect(int id, AudioEffectType type, int weight)
Added in v3.27.0, It will replace the interface audioEffect(int, AudioEffectType, int)
id
- The id of the audio stream that the sound effect is added to.type
- The effect type com.aliyun.svideosdk.editor.AudioEffectType
.weight
- The weight of the effect. Valid values: [0,100].int removeAudioEffect(int id, AudioEffectType type)
id
- The id of the sound effect to be removed.type
- The effect type com.aliyun.svideosdk.editor.AudioEffectType
.int setAudioFadeIn(int id, ShapeType shapeType, long duration)
added in v3.20
set audio fade in
id
- The id of the sound effect.shapeType
- the type of fade ShapeType
int setAudioFadeOut(int id, ShapeType shapeType, long duration)
added in v3.20
set audio fade out
id
- The id of the sound effect.shapeType
- the type of fade ShapeType
int removeAudioFadeIn(int id)
added in v3.20
remove audio fade in
id
- The id of the sound effect.int removeAudioFadeOut(int id)
added in v3.20
remove audio fade out
id
- The id of the sound effect.int setVideoAugmentation(int streamId, VideoAugmentationType type, float value)
Added in v3.19.0
setting the video eq parameter
streamId
- target stream idtype
- video augmentation type VideoAugmentationType
value
- int resetVideoAugmentation(int streamId, VideoAugmentationType type)
Added in v3.19.0
reset the video augmentation parameter
streamId
- target stream idtype
- video augmentation type VideoAugmentationType
AliyunIPipManager getPipManager()
Added in v3.25.0
get picture in picture manager
AliyunEditorProject getEditorProject()
Added in v3.23.0
Gets the editor project
void updateCover(Source source)
Added in v3.25.0
Update cover source. If null will auto capture first frame image as cover.
source
- cover sourceint applyLutFilter(LUTEffectBean effect)
Added in v3.27.0
apply global lut filter.
effect
- lut filter resource bean, null indicates remove lut filter.int updateCaption(AliyunCaption caption)
Added in v3.27.0
Update the caption.
caption
- captionint setHorizontalFlip(int streamId, boolean flip)
Added in v3.31.0
setting the video horizontal flip or no
streamId
- target stream idflip
- video flip or no