Agora Java API Reference for Android

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::rtc::IMediaRecorder
Definition: IAgoraMediaRecorder.h:14
agora::agora_refptr
Definition: AgoraRefPtr.h:44
agora::media::MediaRecorderConfiguration
Definition: AgoraMediaBase.h:1985
agora::rtc::IMediaRecorder2
Definition: IAgoraMediaRecorder2.h:18
agora::rtc::IMediaRecorder::stopRecording
virtual int stopRecording()=0