AgoraMediaRecorderDelegate Protocol Reference

Conforms to NSObject
Declared in AgoraRtcEngineKit.h

Overview

The AgoraMediaRecorderDelegate protocol.

Media Recorder Delegate Methods

– mediaRecorder:stateDidChanged:error: required method

Occurs when the recording state changes.

- (void)mediaRecorder:(AgoraMediaRecorder *_Nonnull)recorder stateDidChanged:(AgoraMediaRecorderState)state error:(AgoraMediaRecorderErrorCode)error

Parameters

recorder

AgoraMediaRecorder

state

The current recording state. See AgoraMediaRecorderState.

error

The reason for the state change. See AgoraMediaRecorderErrorCode.

Availability

v3.5.2

When the local audio and video recording state changes, the SDK triggers this callback to report the current recording state and the reason for the change.

Declared In

AgoraRtcEngineKit.h

– mediaRecorder:informationDidUpdated: required method

Occurs when the recording information is updated.

- (void)mediaRecorder:(AgoraMediaRecorder *_Nonnull)recorder informationDidUpdated:(AgoraMediaRecorderInfo *_Nonnull)info

Parameters

recorder

AgoraMediaRecorder

info

Information for the recording file. See AgoraMediaRecorderInfo.

Availability

v3.5.2

After you successfully enable the local audio and video recording, the SDK periodically triggers this callback based on the set value of recorderInfoUpdateInterval. This callback reports the filename, duration, and size of the current recording file.

Declared In

AgoraRtcEngineKit.h