onCapturedDataRecordStateUpdate property

(void Function(ZegoDataRecordState state, int errorCode, ZegoDataRecordConfig config, ZegoPublishChannel channel)?) onCapturedDataRecordStateUpdate
read / write

The callback triggered when the state of data recording (to a file) changes.

Available since: 1.10.0 Description: The callback triggered when the state of data recording (to a file) changes. Use cases: The developer should use this callback to determine the status of the file recording or for UI prompting. When to trigger: After startRecordingCapturedData is called, if the state of the recording process changes, this callback will be triggered. Restrictions: None.

  • state File recording status.
  • errorCode Error code, please refer to the error codes document https://docs.zegocloud.com/en/5548.html for details.
  • config Record config.
  • channel Publishing stream channel.

Implementation

static void Function(
    ZegoDataRecordState state,
    int errorCode,
    ZegoDataRecordConfig config,
    ZegoPublishChannel channel)? onCapturedDataRecordStateUpdate;