Agora RTC Objective-C API Reference
Refactor
|
Public Member Functions | |
virtual void | onRecorderStateChanged (RecorderState state, RecorderErrorCode error)=0 |
virtual void | onRecorderInfoUpdated (const RecorderInfo &info)=0 |
|
inlinevirtual |
|
pure virtual |
Occurs when the recording state changes.
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.
state | The current recording state. See RecorderState. |
error | The reason for the state change. See RecorderErrorCode. |
|
pure virtual |
Occurs when the recording information is updated.
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.
info | Information for the recording file. See RecorderInfo. |