Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
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
11namespace agora {
12namespace 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::RefCountInterface
Definition AgoraRefPtr.h:31
agora::media::IMediaRecorderObserver
Definition AgoraMediaBase.h:2525
agora::rtc::IMediaRecorder
Definition IAgoraMediaRecorder.h:14
agora::rtc::IMediaRecorder::startRecording
virtual int startRecording(const media::MediaRecorderConfiguration &config)=0
Starts audio and video stream recording.
agora::rtc::IMediaRecorder::setMediaRecorderObserver
virtual int setMediaRecorderObserver(media::IMediaRecorderObserver *callback)=0
Registers the IMediaRecorderObserver observer.
agora::rtc::IMediaRecorder::stopRecording
virtual int stopRecording()=0
Stops audio and video stream recording.
agora::rtc::IMediaRecorder::~IMediaRecorder
virtual ~IMediaRecorder()
Definition IAgoraMediaRecorder.h:16
agora::rtc
Definition AgoraExtensions.h:5
agora
Definition AgoraAtomicOps.h:21
agora::media::MediaRecorderConfiguration
Configuration for audio and video stream recording.
Definition AgoraMediaBase.h:2355