Agora RTC Objective-C API Reference
Refactor
|
Inherits <NSObject>.
Media Recorder Delegate Methods | |
(void) | - mediaRecorder:stateDidChanged:uid:state:reason: |
(void) | - mediaRecorder:informationDidUpdated:uid:info: |
- (void) mediaRecorder: | (AgoraMediaRecorder *_Nonnull) | recorder | |
stateDidChanged: | (NSString *_Nonnull) | channelId | |
uid: | (NSUInteger) | uid | |
state: | (AgoraMediaRecorderState) | state | |
reason: | (AgoraMediaRecorderReasonCode) | reason | |
Occurs when media recorder state is changed.
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.
recorder | AgoraMediaRecorder object. |
state | Recorder state. See AgoraMediaRecorderState. |
reason | Error code. See AgoraMediaRecorderReasonCode. |
channelId | The channel name. |
uid | ID of the user. |
- (void) mediaRecorder: | (AgoraMediaRecorder *_Nonnull) | recorder | |
informationDidUpdated: | (NSString *_Nonnull) | channelId | |
uid: | (NSUInteger) | uid | |
info: | (AgoraMediaRecorderInfo *_Nonnull) | info | |
Occurs when media recorder 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.
recorder | AgoraMediaRecorder object. |
info | Information about the recording file.. See AgoraMediaRecorderInfo. |
channelId | The channel name. |
uid | ID of the user. |