public interface AliyunIClipManager
Modifier and Type | Method and Description |
---|---|
int |
addMediaClip(AliyunClip clip)
Adds a media clip.
|
int |
addMediaClip(int index,
AliyunClip clip)
Adds a media clip to an index position.
|
int |
deleteLastMediaClip()
Deletes the media clip at the end of the list.
|
void |
deleteMediaClip(AliyunClip clip)
Removes a media clip, such as a video or an image.
|
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 |
getMediaClip(int index)
Gets a media clip at an index position.
|
int |
getMediaClipCount()
Gets the number of media clips.
|
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 deleteLastMediaClip()
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.void deleteMediaClip(AliyunClip clip)
clip
- AliyunClip getMediaClip(int index)
index
- int getMediaClipCount()
java.util.List<AliyunClip> getAllClips()
void updateAllClips(java.util.List<AliyunClip> clips)
void swap(int pos1, int pos2)
pos1
- pos2
-