onLocalRecordComplete property

(void Function(int errCode, String storagePath)?) onLocalRecordComplete
final

Local Recording Stopped

When you call stopLocalRecording to stop local recording, the SDK returns this callback to notify you of the recording result.

  • Parameters:
    • errCode(int):
      • Status of the recording:
        • 0: Successful.
        • -1: Failed.
        • -2: Switching resolution or horizontal and vertical screen causes the recording to stop.
        • -3: Recording duration is too short or no video or audio data is received. Check the recording duration or whether audio or video capture is enabled.
    • storagePath(String):
      • Storage path of the recording file.

Implementation

final void Function(int errCode, String storagePath)? onLocalRecordComplete;