Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
IAgoraMediaRecorder2.h
1//
2// Agora Media SDK
3//
4// Created by Xiaosen Wang in 2020.
5// Copyright (c) 2020 Agora IO. All rights reserved.
6//
7#pragma once
8
9#include "AgoraRefPtr.h"
10#include "IAgoraMediaRecorder.h"
11#include "NGIAgoraAudioTrack.h"
12#include "NGIAgoraMediaNode.h"
13#include <api/aosl_ref.h>
14
15 namespace agora {
16 namespace rtc {
17
18 class IMediaRecorder2 : public IMediaRecorder {
19 public:
20 virtual int setRecorderConfig(const media::MediaRecorderConfiguration& config,
21 aosl_ref_t ares = AOSL_REF_INVALID) = 0;
22 virtual int setVideoTrack(agora_refptr<IVideoTrack> track,
23 aosl_ref_t ares = AOSL_REF_INVALID) = 0;
24 virtual int removeVideoTrack(aosl_ref_t ares = AOSL_REF_INVALID) = 0;
25
26 virtual int setAudioTrack(agora_refptr<IAudioTrack> track,
27 aosl_ref_t ares = AOSL_REF_INVALID) = 0;
28 virtual int removeAudioTrack(aosl_ref_t ares = AOSL_REF_INVALID) = 0;
29
30 virtual int startRecording(aosl_ref_t ares = AOSL_REF_INVALID) = 0;
31 virtual int stopRecording(aosl_ref_t ares = AOSL_REF_INVALID) = 0;
32
33 virtual ~IMediaRecorder2(){};
34};
35
36} // namespace rtc
37} // namespace agora
agora::agora_refptr
Definition AgoraRefPtr.h:44
agora::rtc::IMediaRecorder2
Definition IAgoraMediaRecorder2.h:18
agora::rtc::IMediaRecorder2::startRecording
virtual int startRecording(aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IMediaRecorder2::setVideoTrack
virtual int setVideoTrack(agora_refptr< IVideoTrack > track, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IMediaRecorder2::removeAudioTrack
virtual int removeAudioTrack(aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IMediaRecorder2::removeVideoTrack
virtual int removeVideoTrack(aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IMediaRecorder2::stopRecording
virtual int stopRecording(aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IMediaRecorder2::setRecorderConfig
virtual int setRecorderConfig(const media::MediaRecorderConfiguration &config, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IMediaRecorder2::setAudioTrack
virtual int setAudioTrack(agora_refptr< IAudioTrack > track, aosl_ref_t ares=AOSL_REF_INVALID)=0
agora::rtc::IMediaRecorder2::~IMediaRecorder2
virtual ~IMediaRecorder2()
Definition IAgoraMediaRecorder2.h:33
agora::rtc::IMediaRecorder
Definition IAgoraMediaRecorder.h:14
agora::rtc
Definition AgoraExtensionVersion.h:12
agora
Definition AgoraAtomicOps.h:21
agora::media::MediaRecorderConfiguration
Definition AgoraMediaBase.h:1985