public interface OnVideoRecordListener
Modifier and Type | Method and Description |
---|---|
void |
onClipComplete(boolean validClip,
long clipDuration)
The callback when the recording clip is complete.
|
void |
onError(int errorCode)
The callback when an error occurs during recording.
|
void |
onFinish(java.lang.String outputPath)
The callback when the composition process is complete.
|
void |
onInitReady()
The callback when the initializer is invoked.
|
void |
onMaxDuration()
The callback when the recording reaches the maximum length.
|
void |
onProgress(long duration)
The callback that outputs the progress of recording.
|
void onProgress(long duration)
duration
- The current length of the recording.void onFinish(java.lang.String outputPath)
AliyunIVideoRecorder.finishRecording()
.outputPath
- The path of the composed video.void onClipComplete(boolean validClip, long clipDuration)
validClip
- Whether the recorded clip is valid. false if the clip is too short.clipDuration
- The length of the clip.void onMaxDuration()
void onError(int errorCode)
errorCode
- @see com.aliyun.svideosdk.common.AliyunErrorCodevoid onInitReady()