public interface AliyunIClipConstructor
Modifier and Type | Method and Description |
---|---|
int |
addImage(java.lang.String imagePath,
long durationMs,
TransitionBase transition,
AliyunDisplayMode mode)
Adds an image.
|
int |
addMediaClip(AliyunClip clip)
Adds a media clip.
|
int |
addMediaClip(int index,
AliyunClip clip)
Adds a media clip to an index position.
|
int |
addVideo(java.lang.String videoPath,
long startTimeMs,
long endTimeMs,
TransitionBase transition,
AliyunDisplayMode mode)
Adds a video.
|
int |
addVideo(java.lang.String videoPath,
TransitionBase transition,
AliyunDisplayMode mode)
Deprecated.
|
int |
deleteMediaClip()
Deletes the media clip at the end of the list.
|
int |
deleteMediaClip(int index)
Deletes a media clip at an index position.
|
java.util.List<AliyunClip> |
getAllClips()
Gets a copy of all media clips in the list.
|
AliyunClip |
getMediaPart(int index)
Gets a media clip at an index position.
|
int |
getMediaPartCount()
Gets the number of media clips.
|
void |
removeMedia(int id)
Removes a media clip, such as a video or an image.
|
void |
removeVideo(java.lang.String videoPath)
Deprecated.
Replaced by
removeMedia(int) . |
void |
swap(int pos1,
int pos2)
Swaps the positions of two media clips.
|
void |
updateAllClips(java.util.List<AliyunClip> clips)
Replaces all clips in the list.
|
int |
updateMediaClip(int index,
AliyunClip clip)
Replaces a media clip at an index position.
|
int addMediaClip(AliyunClip clip)
AliyunVideoClip
.
To add an image, use AliyunImageClip
. Add GIF images as video clips.clip
- AliyunErrorCode.ERROR_CLIP_INVALID
if the invocation fails.AliyunVideoClip
,
AliyunImageClip
int addMediaClip(int index, AliyunClip clip)
AliyunClip
This method creates a clone of this clip and adds this clone to the index position in the list.index
- The index position.clip
- AliyunErrorCode.ERROR_CLIP_INVALID
if the invocation fails.int updateMediaClip(int index, AliyunClip clip)
AliyunClip
This method creates a clone of this clip and uses this clone to replace the clip at the index position.index
- clip
- AliyunErrorCode.ERROR_CLIP_INVALID
if the invocation fails.int deleteMediaClip()
AliyunErrorCode.ERROR_NO_CLIP
if there is no clip in the list.int deleteMediaClip(int index)
index
- AliyunErrorCode.ERROR_CLIP_INDEX_INVALID
if the invocation fails.AliyunClip getMediaPart(int index)
index
- int getMediaPartCount()
java.util.List<AliyunClip> getAllClips()
void updateAllClips(java.util.List<AliyunClip> clips)
void swap(int pos1, int pos2)
pos1
- pos2
- int addVideo(java.lang.String videoPath, TransitionBase transition, AliyunDisplayMode mode)
addVideo(String, TransitionBase, AliyunDisplayMode)
videoPath
- transition
- TransitionBase
mode
- int addVideo(java.lang.String videoPath, long startTimeMs, long endTimeMs, TransitionBase transition, AliyunDisplayMode mode)
videoPath
- The path of the video.startTimeMs
- The start time of the video in milliseconds.endTimeMs
- The end time of the video in milliseconds.transition
- TransitionBase
int addImage(java.lang.String imagePath, long durationMs, TransitionBase transition, AliyunDisplayMode mode)
imagePath
- durationMs
- The image display duration in milliseconds.transition
- TransitionBase
mode
- void removeMedia(int id)
id
- The id of the media clip returned by addVideo(String, TransitionBase, AliyunDisplayMode)
or addImage(String, long, TransitionBase, AliyunDisplayMode)
.void removeVideo(java.lang.String videoPath) throws java.lang.IllegalAccessException
removeMedia(int)
.videoPath
- java.lang.IllegalAccessException