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:
32 virtual int setMediaRecorderObserver(media::IMediaRecorderObserver* callback) = 0;
71 virtual int startRecording(const media::MediaRecorderConfiguration& config) = 0;
85 virtual int stopRecording() = 0;
86 };
87
88 } //namespace rtc
89 } // namespace agora
agora::rtc::IMediaRecorder::setMediaRecorderObserver
virtual int setMediaRecorderObserver(media::IMediaRecorderObserver *callback)=0
agora::rtc::IMediaRecorder
Definition: IAgoraMediaRecorder.h:14
agora::media::IMediaRecorderObserver
Definition: AgoraMediaBase.h:2105
agora::media::MediaRecorderConfiguration
Definition: AgoraMediaBase.h:1985
agora::RefCountInterface
Definition: AgoraRefPtr.h:31
agora::rtc::IMediaRecorder::stopRecording
virtual int stopRecording()=0
agora::rtc::IMediaRecorder::startRecording
virtual int startRecording(const media::MediaRecorderConfiguration &config)=0