public class AliyunEditorProject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.text.SimpleDateFormat |
DATE_FORMAT |
static java.lang.String |
DRAFT_DIR
The draft list dir.
|
Timeline |
mTimeline
the project timeline
|
static java.lang.String |
PROJECT_FILENAME
The project config name.
|
static int |
PROJECT_VERSION
The current version.
|
static java.lang.String |
TEMPLATE_DRAFT_DIR
The template draft list dir.
|
Constructor and Description |
---|
AliyunEditorProject() |
Modifier and Type | Method and Description |
---|---|
void |
addAction(ActionBase action)
Add the action.
|
void |
addAnimationFilter(Filter filter)
Adds an animated filter.
|
void |
addAudioTrackClip(AudioTrackClip audioTrackClip)
Add the audio clip.
|
void |
addEffect(int targetId,
Effect effect)
Adds the effect.
|
void |
addPasterTrack(PasterTrack pasterTrack)
Adds the paster track.
|
void |
addTimeFilter(TimeFilter timeFilter)
Add the time filter.
|
void |
clearAnimationFilters()
clear the animated filter.
|
void |
clearColorEffect()
clear the color filter.
|
void |
clearEffectTrack(EffectTrack.Type type)
Clear the effect track of the specified type
|
void |
clearMusic()
Clear the music effect.
|
void |
clearRollCaptionTrack()
Clear the roll caption track.
|
void |
clearTimeFilters()
Clear the time filter.
|
java.util.List<Filter> |
getAllAnimationFilters()
Gets the all animated filter.
|
java.util.List<TimeFilter> |
getAllTimeFilters()
Gets the all time filter.
|
int |
getAudioId()
Gets the id of the last added music effect.
|
AudioTrackClip |
getAudioTrackClipById(int clipId)
Gets the audio clip of the specified id.
|
PaintTrack |
getCanvasTrack()
Gets the canvas track.
|
Filter |
getColorEffect()
Gets the color filter.
|
Config |
getConfig()
Gets the project configuration.
|
Source |
getCover()
Gets the project cover resource.
|
java.lang.String |
getCreationTime()
Gets the project creation time.
|
float |
getDuration()
Gets the timeline duration.
|
java.lang.String |
getModifiedTime() |
MVFilter |
getMVEffect()
Gets the MV filter.
|
PasterTrack |
getPasterTrackByID(int id)
Gets the paster track of the specified id.
|
java.util.List<PasterTrack> |
getPasterTrackByType(PasterTrack.Type type)
Gets the paster track of the specified type.
|
java.io.File |
getProjectDir() |
java.io.File |
getProjectFile() |
static java.io.File |
getProjectFile(java.io.File dir) |
java.lang.String |
getProjectId()
Gets the project id.
|
java.lang.String |
getRequestID() |
long |
getResourceSize()
Gets the project resource size.
|
RollCaptionTrack |
getRollCaptionTrack()
Gets the roll caption track.
|
TailWaterMark |
getTailWaterMark()
Gets the tail watermark.
|
Source |
getTemplate()
Gets the template source.
|
Timeline |
getTimeline()
Gets the project timeline.
|
java.lang.String |
getTitle()
Gets the project title.
|
Uri |
getUri() |
int |
getVersion()
Gets the project configuration version.
|
VideoTrackClip |
getVideoTrackClipById(int clipId)
Gets the video clip of the specified id.
|
WaterMark |
getWaterMark()
Gets the watermark.
|
boolean |
isCustomCover()
Gets the whether to customize the cover.
|
void |
refreshTimeLine()
refresh timeline
|
void |
removeActionById(int id)
Remove the action of the specified id.
|
void |
removeAnimationFilter(int id)
Remove the animated filter.
|
void |
removeAudioTrackClip(int clipId)
Remove the audio clip of the specified id.
|
void |
removeCanvasTrack()
Remove the canvas track.
|
void |
removeEffect(int targetId,
Effect effect)
Remove the effect.
|
void |
removePasterTrack(int id)
Remove the paster track of the specified id.
|
void |
removeTimeFilter(int id)
Remove the time filter of the specified id.
|
void |
removeVideoTrackClip(int clipId)
Remove the audio clip of the specified id.
|
void |
setCanvasTrack(PaintTrack paintTrack)
Sets the canvas track.
|
void |
setColorEffect(Filter filter)
Sets the color filter.
|
void |
setCover(Source cover)
Sets the project cover resource.
|
void |
setCreationTime(java.lang.String creationTime)
Sets the project creation time.
|
void |
setCustomCover(boolean customCover)
Sets the whether to customize the cover.
|
void |
setDenoise(int id,
int denoiseWeight)
Sets denoises an audio stream.
|
void |
setDuration(float duration)
Sets the timeline duration.
|
void |
setLutEffect(Filter filter)
Sets the color filter.
|
void |
setModifiedTime(java.lang.String modifiedTime)
Gets the latest modification time of the project.
|
void |
setMusicWeight(int id,
int weight)
Sets the mixing weight of an audio stream.
|
void |
setMVEffect(MVFilter filter)
Sets the MV filter.
|
void |
setProjectDir(java.io.File dir,
java.io.File file) |
void |
setProjectId(java.lang.String projectId)
Sets the project id.
|
void |
setRequestID(java.lang.String requestID) |
void |
setResourceSize(long resourceSize)
Gets the project resource size.
|
void |
setRollCaptionTrack(RollCaptionTrack rollCaptionTrack)
Sets the roll caption track.
|
void |
setTailWaterMark(TailWaterMark tailWaterMark)
Sets the tail watermark.
|
void |
setTemplate(Source template)
Sets the project template.
|
void |
setTitle(java.lang.String title)
Sets the project title.
|
void |
setVersion(int version)
Sets the project configuration version.
|
void |
setWaterMark(WaterMark waterMark)
Sets the watermark.
|
void |
updateAnimationFilter(EffectFilter filter)
Update the animated filter.
|
void |
updateFileSize() |
void |
updateTransition(int clipId,
TransitionBase transitionBase)
Update the transition config.
|
public static final java.text.SimpleDateFormat DATE_FORMAT
public static final java.lang.String DRAFT_DIR
public static final java.lang.String TEMPLATE_DRAFT_DIR
public static final java.lang.String PROJECT_FILENAME
public static final int PROJECT_VERSION
public Timeline mTimeline
public java.lang.String getRequestID()
public void setRequestID(java.lang.String requestID)
public Uri getUri()
public static java.io.File getProjectFile(java.io.File dir)
public java.io.File getProjectDir()
public void setProjectDir(java.io.File dir, java.io.File file)
public java.io.File getProjectFile()
public void updateFileSize()
public int getVersion()
public void setVersion(int version)
version
- versionpublic java.lang.String getProjectId()
public void setProjectId(java.lang.String projectId)
projectId
- project idpublic Source getTemplate()
public void setTemplate(Source template)
template
- templatepublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- titlepublic java.lang.String getCreationTime()
public void setCreationTime(java.lang.String creationTime)
creationTime
- creation timepublic java.lang.String getModifiedTime()
public void setModifiedTime(java.lang.String modifiedTime)
modifiedTime
- modification timepublic Timeline getTimeline()
public float getDuration()
public void setDuration(float duration)
duration
- the timeline durationpublic long getResourceSize()
public void setResourceSize(long resourceSize)
resourceSize
- resource sizepublic Source getCover()
public void setCover(Source cover)
cover
- resourcepublic boolean isCustomCover()
public void setCustomCover(boolean customCover)
customCover
- is custom coverpublic Config getConfig()
public VideoTrackClip getVideoTrackClipById(int clipId)
clipId
- clip idpublic void removeVideoTrackClip(int clipId)
clipId
- clip idpublic AudioTrackClip getAudioTrackClipById(int clipId)
clipId
- clip idpublic void addAudioTrackClip(AudioTrackClip audioTrackClip)
audioTrackClip
- audio clippublic void removeAudioTrackClip(int clipId)
clipId
- clip idpublic void clearMusic()
public int getAudioId()
public void addAction(ActionBase action)
action
- actionpublic void removeActionById(int id)
id
- idpublic void setMusicWeight(int id, int weight)
id
- idweight
- mixing weightpublic void setDenoise(int id, int denoiseWeight)
id
- iddenoiseWeight
- 0:close 100:maxpublic void addEffect(int targetId, Effect effect)
targetId
- target ideffect
- effectpublic void removeEffect(int targetId, Effect effect)
targetId
- target ideffect
- effectpublic void setColorEffect(Filter filter)
filter
- color filterpublic void clearColorEffect()
public void setLutEffect(Filter filter)
filter
- color filterpublic Filter getColorEffect()
public void clearEffectTrack(EffectTrack.Type type)
type
- typepublic void setMVEffect(MVFilter filter)
filter
- MV filterpublic MVFilter getMVEffect()
public void setCanvasTrack(PaintTrack paintTrack)
paintTrack
- canvas trackpublic PaintTrack getCanvasTrack()
public void removeCanvasTrack()
public void setWaterMark(WaterMark waterMark)
waterMark
- watermarkpublic WaterMark getWaterMark()
public void setTailWaterMark(TailWaterMark tailWaterMark)
tailWaterMark
- tail watermarkpublic TailWaterMark getTailWaterMark()
public RollCaptionTrack getRollCaptionTrack()
public void setRollCaptionTrack(RollCaptionTrack rollCaptionTrack)
rollCaptionTrack
- roll caption trackpublic void clearRollCaptionTrack()
public void updateTransition(int clipId, TransitionBase transitionBase)
clipId
- clip idtransitionBase
- transitionpublic void addAnimationFilter(Filter filter)
filter
- animated filterpublic java.util.List<Filter> getAllAnimationFilters()
public void updateAnimationFilter(EffectFilter filter)
filter
- animated filterpublic void removeAnimationFilter(int id)
id
- idpublic void clearAnimationFilters()
public void addTimeFilter(TimeFilter timeFilter)
timeFilter
- time filterpublic java.util.List<TimeFilter> getAllTimeFilters()
public void removeTimeFilter(int id)
id
- public void clearTimeFilters()
public void addPasterTrack(PasterTrack pasterTrack)
pasterTrack
- paster trackpublic void removePasterTrack(int id)
id
- idpublic PasterTrack getPasterTrackByID(int id)
id
- idpublic java.util.List<PasterTrack> getPasterTrackByType(PasterTrack.Type type)
type
- typepublic void refreshTimeLine()