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.javaParameters
| Name | Type | Description |
|---|---|---|
| state | ZegoDataRecordState | File recording status. |
| errorCode | int | Error code, please refer to the error codes document https://docs.zegocloud.com/en/5548.html for details. |
| config | ZegoDataRecordConfig | Record config. |
| channel | ZegoPublishChannel | Publishing 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.javaParameters
| Name | Type | Description |
|---|---|---|
| progress | ZegoDataRecordProgress | File recording progress, which allows developers to hint at the UI, etc. |
| config | ZegoDataRecordConfig | Record config. |
| channel | ZegoPublishChannel | Publishing 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.
