Class IZegoDataRecordEventHandler


  • public abstract class IZegoDataRecordEventHandler
    extends java.lang.Object
    • Constructor Detail

      • IZegoDataRecordEventHandler

        public IZegoDataRecordEventHandler()
    • Method Detail

      • 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. 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.
        Parameters:
        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.
      • onCapturedDataRecordProgressUpdate

        public void onCapturedDataRecordProgressUpdate​(ZegoDataRecordProgress progress,
                                                       ZegoDataRecordConfig config,
                                                       ZegoPublishChannel channel)
        The callback to report the current recording progress. Available since: 1.10.0 Description: 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. Restrictions: None.
        Parameters:
        progress - File recording progress, which allows developers to hint at the UI, etc.
        config - Record config.
        channel - Publishing stream channel.