|
Agora RTC Objective-C API Reference
Refactor
|
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 |
|
inlinevirtual |
|
pure virtual |
Callback when the recording state changes.
When the recording state of the audio and video stream changes, the SDK triggers this callback to report the current recording state and the reason for the change.
| channelId | Channel name. |
| uid | User ID. |
| state | Current recording state. See RecorderState. |
| reason | Reason for the recording state change. See RecorderReasonCode. |
|
pure virtual |
Callback for recording information updates.
After successfully registering this callback and starting audio and video stream recording, the SDK periodically triggers this callback based on the value of recorderInfoUpdateInterval set in MediaRecorderConfiguration, reporting the current recording file's name, duration, and size.
| channelId | Channel name. |
| uid | User ID. |
| info | Recording file information. See RecorderInfo. |