public interface AliyunICrop
Modifier and Type | Method and Description |
---|---|
void |
cancel()
取消裁剪
|
void |
dispose()
释放资源
|
long |
getVideoDuration(java.lang.String videoPath)
获取视频时长
|
void |
setCropCallback(CropCallback callback)
设置裁剪回调
|
int |
setCropParam(CropParam param)
设置裁剪参数
|
void |
setUseHW(boolean hwDecoder)
打开或者关闭硬解码,默认打开
|
int |
startCrop()
开始裁剪
|
int |
startCropAudio(java.lang.String inputPath,
java.lang.String outputPath,
long startTimeUs,
long endTimeUs)
裁剪音频
|
int |
startCropAudio(java.lang.String inputPath,
java.lang.String outputPath,
long startTime,
long endTime,
java.util.concurrent.TimeUnit timeUnit)
裁剪音频
|
java.lang.String |
version()
获取接口版本号
|
int startCrop()
CropCallback
int startCropAudio(java.lang.String inputPath, java.lang.String outputPath, long startTimeUs, long endTimeUs)
startTimeUs
- 开始时间 单位:微秒endTimeUs
- 结束时间 单位:微秒CropCallback
int startCropAudio(java.lang.String inputPath, java.lang.String outputPath, long startTime, long endTime, java.util.concurrent.TimeUnit timeUnit)
v3.27.0新增
startTime
- 开始时间endTime
- 结束时间timeUnit
- 时间单位CropCallback
void setUseHW(boolean hwDecoder)
hwDecoder
- true 为打开void setCropCallback(CropCallback callback)
callback
- CropCallback
void cancel()
void dispose()
long getVideoDuration(java.lang.String videoPath) throws java.lang.Exception
videoPath
- java.lang.Exception
java.lang.String version()