Agora RTC Objective-C API Reference  Refactor
Instance Methods | Class Methods
AgoraMediaRecorder Class Reference

Inherits <NSObject>.

Instance Methods

(int) - startRecording:config:
 
(int) - stopRecording:
 

Class Methods

(instancetype _Nonnull) + sharedMediaRecorderWithRtcEngine:
 
(void) + destroy
 

Method Documentation

◆ sharedMediaRecorderWithRtcEngine:

+ (instancetype _Nonnull) sharedMediaRecorderWithRtcEngine: (AgoraRtcEngineKit *_Nonnull)  engine

Initializes the AgoraMediaRecorder object.

Parameters
engineAgoraRtcEngineKit object.
delegateAgoraMediaRecorderDelegate.
Returns
An object of AgoraMediaRecorder class.

◆ setMediaRecorderDelegate:delegate:

- (int) setMediaRecorderDelegate: (AgoraRtcConnection *_Nonnull)  connection
delegate: (id< AgoraMediaRecorderDelegate > _Nullable)  delegate 

◆ destroy

+ (void) destroy

Destroys the RtcEngine instance and releases all resources used by the SDK.

◆ startRecording:config:

- (int) startRecording: (AgoraRtcConnection *_Nonnull)  connection
config: (AgoraMediaRecorderConfiguration *_Nonnull)  config 

Start recording.

Parameters
configAgoraMediaRecorderConfiguration object.
Returns
0: Success. < 0: Failure.

◆ stopRecording:

- (int) stopRecording: (AgoraRtcConnection *_Nonnull)  connection

Stop recording.

Returns
0: Success. < 0: Failure.