onLocalRecordBegin property

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

Local Recording Started

When you call startLocalRecording to start local recording, the SDK returns this callback to notify you whether recording has started successfully.

  • Parameters:
    • errCode(int):
      • Status of the recording:
        • 0: Successful.
        • -1: Failed.
        • -2: Unsupported format.
        • -6: Recording has been started. Stop recording first.
        • -7: Recording file already exists and needs to be deleted.
        • -8: Recording directory does not have write permission. Please check the directory permission.
    • storagePath(String):
      • Storage path of the recording file.

Implementation

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