Agora C++ API Reference for All Platforms

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:2093
agora
Definition: AgoraAtomicOps.h:21
agora::media::MediaRecorderConfiguration
Definition: AgoraMediaBase.h:1973
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
rtc
Definition: video_node_i.h:28
agora::rtc::IMediaRecorder::~IMediaRecorder
virtual ~IMediaRecorder()
Definition: IAgoraMediaRecorder.h:16