Agora Java API Reference for Android

IAgoraMediaRecorder.h
1 //
2 // Agora SDK
3 //
4 // Copyright (c) 2022 Agora.io. All rights reserved.
5 //
6 #pragma once // NOLINT(build/header_guard)
7
8 #include "AgoraBase.h"
9 #include "AgoraMediaBase.h"
10
11 namespace agora {
12 namespace rtc {
13
14 class IMediaRecorder : public RefCountInterface {
15 protected:
16 virtual ~IMediaRecorder() {}
17
18 public:
37 virtual int setMediaRecorderObserver(media::IMediaRecorderObserver* callback) = 0;
82 virtual int startRecording(const media::MediaRecorderConfiguration& config) = 0;
97 virtual int stopRecording() = 0;
98 };
99
100 } //namespace rtc
101 } // namespace agora
agora::rtc::IMediaRecorder::setMediaRecorderObserver
virtual int setMediaRecorderObserver(media::IMediaRecorderObserver *callback)=0
Registers the IMediaRecorderObserver observer.
agora::rtc::IMediaRecorder
Definition: IAgoraMediaRecorder.h:14
agora::media::IMediaRecorderObserver
Definition: AgoraMediaBase.h:2531
agora::media::MediaRecorderConfiguration
Configuration for audio and video stream recording.
Definition: AgoraMediaBase.h:2361
agora::RefCountInterface
Definition: AgoraRefPtr.h:31
agora::rtc::IMediaRecorder::stopRecording
virtual int stopRecording()=0
Stops audio and video stream recording.
agora::rtc::IMediaRecorder::startRecording
virtual int startRecording(const media::MediaRecorderConfiguration &config)=0
Starts audio and video stream recording.