onRemoteDataRecordStateUpdate property
getter/setter pair
The callback triggered when the state of data recording (to a file) changes.
Available since: 3.21.0
Description: The callback triggered when the state of data remote 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 startRecordingRemoteData is called, if the state of the recording process changes, this callback will be triggered.
Restrictions: None.
stateFile recording status.errorCodeError code, please refer to the error codes document https://docs.zegocloud.com/en/5548.html for details.configRecord config.streamIDplay stream id.
Implementation
static void Function(
ZegoDataRecordState state,
int errorCode,
ZegoDataRecordConfig config,
String streamID)? onRemoteDataRecordStateUpdate;