|
Agora RTC Objective-C API Reference
Refactor
|
Inherits IMediaRecorder.
Public Member Functions | |
| virtual int | setMediaRecorderObserver (media::IMediaRecorderObserver *callback)=0 |
| virtual int | startRecording (const media::MediaRecorderConfiguration &config)=0 |
| virtual int | stopRecording ()=0 |
|
inlinevirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtualinherited |
Registers the IMediaRecorderObserver observer.
This method sets the callback for audio and video recording, so the app can be notified of recording status and information during the recording process. Before calling this method, make sure that:
IRtcEngine object has been created and initialized.createMediaRecorder.| callback | Callback for audio and video stream recording. See IMediaRecorderObserver. |
Error Codes for details and resolution suggestions.
|
pure virtualinherited |
Starts audio and video stream recording.
This method starts recording audio and video streams. The Agora SDK supports recording both local and remote users' audio and video streams simultaneously. Before starting the recording, make sure that:
createMediaRecorder.setMediaRecorderObserver to listen for recording callbacks.onRecorderStateChanged (RECORDER_STATE_ERROR, RECORDER_REASON_NO_STREAM) callback.| config | Audio and video stream recording configuration. See MediaRecorderConfiguration. |
Error Codes for details and resolution suggestions.IRtcEngine is in a state that does not support this operation. This may be because a recording is already in progress or has stopped due to an error.IRtcEngine is not initialized when this method is called. Please make sure the IMediaRecorder object has been created before calling this method.
|
pure virtualinherited |
Stops audio and video stream recording.
startRecording, you must call this method to stop the recording; otherwise, the generated recording file may not play properly.IRtcEngine is not initialized when this method is called. Please make sure the IMediaRecorder object has been created before calling this method.
|
pure virtualinherited |
|
pure virtualinherited |
|
pure virtualinherited |