Agora RTC Objective-C API Reference  Refactor
Public Member Functions
IMediaRecorderObserver Class Referenceabstract

Public Member Functions

virtual void onRecorderStateChanged (const char *channelId, rtc::uid_t uid, RecorderState state, RecorderReasonCode reason)=0
 
virtual void onRecorderInfoUpdated (const char *channelId, rtc::uid_t uid, const RecorderInfo &info)=0
 

Constructor & Destructor Documentation

◆ ~IMediaRecorderObserver()

virtual ~IMediaRecorderObserver ( )
inlinevirtual

Member Function Documentation

◆ onRecorderStateChanged()

virtual void onRecorderStateChanged ( const char *  channelId,
rtc::uid_t  uid,
RecorderState  state,
RecorderReasonCode  reason 
)
pure virtual

Occurs when the recording state changes.

Since
v4.0.0

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.

Parameters
channelIdThe channel name.
uidID of the user.
stateThe current recording state. See RecorderState.
reasonThe reason for the state change. See RecorderReasonCode.

◆ onRecorderInfoUpdated()

virtual void onRecorderInfoUpdated ( const char *  channelId,
rtc::uid_t  uid,
const RecorderInfo info 
)
pure virtual

Occurs when the recording information is updated.

Since
v4.0.0

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

Parameters
channelIdThe channel name.
uidID of the user.
infoInformation about the recording file. See RecorderInfo.