logo
On this page

IZegoDataRecordEventHandler

IZegoDataRecordEventHandler

Declared in callback/IZegoDataRecordEventHandler.java

Methods

onCapturedDataRecordStateUpdate

onCapturedDataRecordStateUpdate
public void onCapturedDataRecordStateUpdate(ZegoDataRecordState state, int errorCode, ZegoDataRecordConfig config, ZegoPublishChannel channel)
The callback triggered when the state of data recording (to a file) changes.
Declared in callback/IZegoDataRecordEventHandler.java

Parameters

NameTypeDescription
stateZegoDataRecordStateFile recording status.
errorCodeintError code, please refer to the error codes document https://docs.zegocloud.com/en/5548.html for details.
configZegoDataRecordConfigRecord config.
channelZegoPublishChannelPublishing stream channel.

Details

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.
  • Available since: 1.10.0
  • Restrictions: None.

onCapturedDataRecordProgressUpdate

onCapturedDataRecordProgressUpdate
public void onCapturedDataRecordProgressUpdate(ZegoDataRecordProgress progress, ZegoDataRecordConfig config, ZegoPublishChannel channel)
The callback to report the current recording progress.
Declared in callback/IZegoDataRecordEventHandler.java

Parameters

NameTypeDescription
progressZegoDataRecordProgressFile recording progress, which allows developers to hint at the UI, etc.
configZegoDataRecordConfigRecord config.
channelZegoPublishChannelPublishing stream channel.

Details

Recording progress update callback, triggered at regular intervals during recording.

  • Use cases: Developers can do UI hints for the user interface. When to trigger: After [startRecordingCapturedData] is called, If configured to require a callback, timed trigger during recording.
  • Available since: 1.10.0
  • Restrictions: None.

Previous

izegocustomvideorenderhandler

Next

izegoeventhandler

On this page

Back to top