public interface AliyunICrop
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels cropping.
|
void |
dispose()
Releases resources.
|
long |
getVideoDuration(java.lang.String videoPath)
Gets the duration of a video.
|
void |
setCropCallback(CropCallback callback)
Sets the callback of cropping.
|
int |
setCropParam(CropParam param)
Sets cropping parameters.
|
void |
setUseHW(boolean hwDecoder)
Enables or disables hardware decoding.
|
int |
startCrop()
Starts cropping.
|
int |
startCropAudio(java.lang.String inputPath,
java.lang.String outputPath,
long startTimeUs,
long endTimeUs)
Crops an audio file.
|
int |
startCropAudio(java.lang.String inputPath,
java.lang.String outputPath,
long startTime,
long endTime,
java.util.concurrent.TimeUnit timeUnit)
Crops an audio file.
|
java.lang.String |
version()
Gets the SDK version.
|
int startCrop()
CropCallback
int startCropAudio(java.lang.String inputPath, java.lang.String outputPath, long startTimeUs, long endTimeUs)
startTimeUs
- The start time of the audio in microseconds.endTimeUs
- The end time of the audio in microseconds.CropCallback
int startCropAudio(java.lang.String inputPath, java.lang.String outputPath, long startTime, long endTime, java.util.concurrent.TimeUnit timeUnit)
Added in v3.27.0
startTime
- The start time of the audio.endTime
- The end time of the audio .timeUnit
- The time unitCropCallback
int setCropParam(CropParam param)
param
- CropParam
void setUseHW(boolean hwDecoder)
hwDecoder
- A value of true indicates enable hardware decoding.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()