public interface OnRecordCallback
Added in v3.27.0
| Modifier and Type | Method and Description |
|---|---|
void |
onClipComplete(boolean validClip,
long clipDuration)
The callback when the recording 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 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 onFinish(java.lang.String outputPath)
AliyunIRecorder.finishRecording().outputPath - The path of the composed video.void onProgress(long duration)
duration - The current length of the recording.void onMaxDuration()
void onError(int errorCode)
errorCode - @see com.aliyun.svideosdk.common.AliyunErrorCodevoid onInitReady()