|
Agora Java API Reference for Android
|
Public Member Functions | |
| virtual int | setMediaRecorderObserver (media::IMediaRecorderObserver *callback)=0 |
Registers the IMediaRecorderObserver observer. More... | |
| virtual int | startRecording (const media::MediaRecorderConfiguration &config)=0 |
| Starts audio and video stream recording. More... | |
| virtual int | stopRecording ()=0 |
| Stops audio and video stream recording. More... | |
Public Member Functions inherited from agora::RefCountInterface | |
| virtual void | AddRef () const =0 |
| virtual RefCountReleaseStatus | Release () const =0 |
| virtual bool | HasOneRef () const =0 |
|
pure virtual |
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 virtual |
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 virtual |
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.
1.8.18