public interface RecordCallback
| Modifier and Type | Method and Description |
|---|---|
void |
onComplete(boolean validClip,
long clipDuration)
The callback when the recording is complete.
|
void |
onDrawReady()
The callback that is invoked before
AliyunIRecorder.startRecording() is invoked. |
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 |
onPictureBack(Bitmap bitmap)
The callback that converts a frame to a bitmap image.
|
void |
onPictureDataBack(byte[] data)
The callback that outputs frame data.
|
void |
onProgress(long duration)
The callback that outputs the progress of recording.
|
void onComplete(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()
void onDrawReady()
AliyunIRecorder.startRecording() is invoked.void onPictureBack(Bitmap bitmap)
bitmap - The bitmap image.void onPictureDataBack(byte[] data)
data - The frame data.