startFileRecording abstract method
Future<int?>
startFileRecording({
- StreamIndex streamIndex = StreamIndex.main,
- required RecordingConfig config,
- required RecordingType recordingType,
Records the audio & video data during the call to a local file.
Returned value:
- 0: Normal.
- -1: Parameter exception.
- -2: The current version of the SDK does not support this feature, please contact technical support.
Notes:
- After this API is called, the local user will receive RTCVideoEventHandler.onRecordingStateUpdate.
- If the recording is normal, the system will report the recording progress through RTCVideoEventHandler.onRecordingProgressUpdate every second.
Implementation
Future<int?> startFileRecording({
StreamIndex streamIndex = StreamIndex.main,
required RecordingConfig config,
required RecordingType recordingType,
});