Agora RTC Objective-C API Reference Refactor

IAgoraMediaRecorder.h
Go to the documentation of this file.
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
Definition: IAgoraMediaRecorder.h:14
agora::media::IMediaRecorderObserver
Definition: AgoraMediaBase.h:2525
AgoraBase.h
agora::rtc::IMediaRecorder::setMediaRecorderObserver
virtual int setMediaRecorderObserver(media::IMediaRecorderObserver *callback)=0
Registers the IMediaRecorderObserver observer.
agora
Definition: AgoraAtomicOps.h:21
agora::rtc::IMediaRecorder::startRecording
virtual int startRecording(const media::MediaRecorderConfiguration &config)=0
Starts audio and video stream recording.
agora::rtc::IMediaRecorder::stopRecording
virtual int stopRecording()=0
Stops audio and video stream recording.
agora::media::MediaRecorderConfiguration
Configuration for audio and video stream recording.
Definition: AgoraMediaBase.h:2355
AgoraMediaBase.h
agora::RefCountInterface
Definition: AgoraRefPtr.h:31
agora::rtc::IMediaRecorder::~IMediaRecorder
virtual ~IMediaRecorder()
Definition: IAgoraMediaRecorder.h:16