Skip to content

Commit d05dec3

Browse files
committed
[AUTO] Update native headers to rtc_4.1.2.177
1 parent 6c7532d commit d05dec3

26 files changed

+23876
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#pragma once
2+
3+
#include "AgoraBase.h"
4+
#include "IAgoraMediaEngine.h"
5+
6+
namespace agora {
7+
namespace media {
8+
namespace ext {
9+
10+
class IMediaEngine {
11+
virtual int unregisterAudioFrameObserver(IAudioFrameObserver *observer) = 0;
12+
13+
virtual int unregisterVideoFrameObserver(IVideoFrameObserver *observer) = 0;
14+
15+
virtual int
16+
unregisterVideoEncodedFrameObserver(IVideoEncodedFrameObserver *observer) = 0;
17+
};
18+
19+
} // namespace ext
20+
} // namespace media
21+
} // namespace agora
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#pragma once
2+
3+
#include "AgoraBase.h"
4+
#include "AgoraMediaBase.h"
5+
#include "IAgoraMediaPlayer.h"
6+
7+
namespace agora {
8+
namespace rtc {
9+
namespace ext {
10+
11+
class IMediaPlayerAudioFrameObserver {
12+
virtual void onFrame(const agora::media::base::AudioPcmFrame *frame) = 0;
13+
};
14+
15+
class IMediaPlayerVideoFrameObserver {
16+
virtual void onFrame(const agora::media::base::VideoFrame *frame) = 0;
17+
};
18+
19+
class IMediaPlayer {
20+
virtual int
21+
registerAudioFrameObserver(IMediaPlayerAudioFrameObserver *observer) = 0;
22+
23+
virtual int
24+
unregisterAudioFrameObserver(IMediaPlayerAudioFrameObserver *observer) = 0;
25+
26+
virtual int
27+
registerVideoFrameObserver(IMediaPlayerVideoFrameObserver *observer) = 0;
28+
29+
virtual int
30+
unregisterVideoFrameObserver(IMediaPlayerVideoFrameObserver *observer) = 0;
31+
32+
virtual int setPlayerOptionInInt(const char *key, int value) = 0;
33+
34+
virtual int setPlayerOptionInString(const char *key, const char *value) = 0;
35+
};
36+
37+
} // namespace ext
38+
} // namespace rtc
39+
} // namespace agora
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#pragma once
2+
3+
#include "IAgoraMediaPlayer.h"
4+
#include <AgoraRefPtr.h>
5+
6+
namespace agora {
7+
namespace rtc {
8+
namespace ext {
9+
10+
class IMusicPlayer : public IMediaPlayer {
11+
public:
12+
virtual int openWithSongCode(int64_t songCode, int64_t startPos = 0) = 0;
13+
};
14+
} // namespace ext
15+
} // namespace rtc
16+
} // namespace agora
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
#pragma once
2+
3+
#include "AgoraBase.h"
4+
#include "IAgoraMediaEngine.h"
5+
#include "IAgoraMediaRecorder.h"
6+
#include "IAgoraMusicContentCenter.h"
7+
#include "IAgoraRtcEngine.h"
8+
#include "IAgoraSpatialAudio.h"
9+
#include "IAudioDeviceManager.h"
10+
11+
namespace agora {
12+
namespace rtc {
13+
namespace ext {
14+
15+
struct SDKBuildInfo {
16+
int build;
17+
const char *version;
18+
};
19+
20+
struct VideoDeviceInfo {
21+
const char *deviceId;
22+
const char *deviceName;
23+
};
24+
25+
struct AudioDeviceInfo {
26+
const char *deviceId;
27+
const char *deviceName;
28+
};
29+
30+
class IRtcEngine {
31+
virtual int joinChannel(const char *token, const char *channelId, uid_t uid,
32+
const ChannelMediaOptions &options) = 0;
33+
34+
virtual int leaveChannel(const LeaveChannelOptions *options = NULL) = 0;
35+
36+
virtual int setClientRole(CLIENT_ROLE_TYPE role,
37+
const ClientRoleOptions *options = NULL) = 0;
38+
39+
virtual int startEchoTest(int intervalInSeconds = 10) = 0;
40+
41+
virtual int
42+
startPreview(VIDEO_SOURCE_TYPE sourceType =
43+
VIDEO_SOURCE_TYPE::VIDEO_SOURCE_CAMERA_PRIMARY) = 0;
44+
45+
virtual int
46+
stopPreview(VIDEO_SOURCE_TYPE sourceType =
47+
VIDEO_SOURCE_TYPE::VIDEO_SOURCE_CAMERA_PRIMARY) = 0;
48+
49+
virtual int
50+
setAudioProfile(AUDIO_PROFILE_TYPE profile,
51+
AUDIO_SCENARIO_TYPE scenario =
52+
AUDIO_SCENARIO_TYPE::AUDIO_SCENARIO_DEFAULT) = 0;
53+
54+
virtual int
55+
startAudioRecording(const AudioRecordingConfiguration &config) = 0;
56+
57+
virtual int startAudioMixing(const char *filePath, bool loopback, int cycle,
58+
int startPos = 0) = 0;
59+
60+
virtual int
61+
setLocalRenderMode(media::base::RENDER_MODE_TYPE renderMode,
62+
VIDEO_MIRROR_MODE_TYPE mirrorMode =
63+
VIDEO_MIRROR_MODE_TYPE::VIDEO_MIRROR_MODE_AUTO) = 0;
64+
65+
virtual int
66+
enableDualStreamMode(bool enabled,
67+
const SimulcastStreamConfig *streamConfig = NULL) = 0;
68+
69+
virtual int
70+
setDualStreamMode(SIMULCAST_STREAM_MODE mode,
71+
const SimulcastStreamConfig *streamConfig = NULL) = 0;
72+
73+
virtual int createDataStream(int *streamId,
74+
const DataStreamConfig &config) = 0;
75+
76+
virtual int addVideoWatermark(const char *watermarkUrl,
77+
const WatermarkOptions &options) = 0;
78+
79+
virtual int
80+
joinChannelWithUserAccount(const char *token, const char *channelId,
81+
const char *userAccount,
82+
const ChannelMediaOptions *options = NULL) = 0;
83+
84+
virtual int enableExtension(const char *provider, const char *extension,
85+
bool enable = true,
86+
agora::media::MEDIA_SOURCE_TYPE type =
87+
agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
88+
89+
virtual int setExtensionProperty(const char *provider, const char *extension,
90+
const char *key, const char *value,
91+
agora::media::MEDIA_SOURCE_TYPE type =
92+
agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
93+
94+
virtual int getExtensionProperty(const char *provider, const char *extension,
95+
const char *key, char *value, int buf_len,
96+
agora::media::MEDIA_SOURCE_TYPE type =
97+
agora::media::UNKNOWN_MEDIA_SOURCE) = 0;
98+
99+
#ifdef __ELECTRON__
100+
virtual void destroyRendererByView(view_t view) = 0;
101+
102+
virtual void destroyRendererByConfig(VIDEO_SOURCE_TYPE sourceType,
103+
const char *channelId = NULL,
104+
uid_t uid = 0) = 0;
105+
#endif
106+
107+
virtual IAudioDeviceManager *getAudioDeviceManager() = 0;
108+
109+
virtual IVideoDeviceManager *getVideoDeviceManager() = 0;
110+
111+
virtual IMusicContentCenter *getMusicContentCenter() = 0;
112+
113+
virtual agora::media::IMediaEngine *getMediaEngine() = 0;
114+
115+
virtual IMediaRecorder *getMediaRecorder() = 0;
116+
117+
virtual ILocalSpatialAudioEngine *getLocalSpatialAudioEngine() = 0;
118+
119+
virtual int sendMetaData(const IMetadataObserver::Metadata &metadata,
120+
VIDEO_SOURCE_TYPE source_type) = 0;
121+
122+
virtual int setMaxMetadataSize(int size) = 0;
123+
124+
virtual int
125+
unregisterAudioEncodedFrameObserver(IAudioEncodedFrameObserver *observer) = 0;
126+
127+
virtual intptr_t getNativeHandle() = 0;
128+
};
129+
130+
} // namespace ext
131+
} // namespace rtc
132+
} // namespace agora
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#pragma once
2+
3+
#include "AgoraBase.h"
4+
#include "IAgoraRtcEngineEx.h"
5+
6+
namespace agora {
7+
namespace rtc {
8+
namespace ext {
9+
10+
class IRtcEngineEx {
11+
virtual int leaveChannelEx(const RtcConnection &connection,
12+
const LeaveChannelOptions *options = NULL) = 0;
13+
14+
virtual int createDataStreamEx(int *streamId, DataStreamConfig &config,
15+
const RtcConnection &connection) = 0;
16+
};
17+
18+
} // namespace ext
19+
} // namespace rtc
20+
} // namespace agora
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#pragma once
2+
3+
#include "CustomIAgoraRtcEngine.h"
4+
5+
namespace agora {
6+
namespace rtc {
7+
namespace ext {
8+
9+
class IAudioDeviceManager {
10+
virtual AudioDeviceInfo *getPlaybackDefaultDevice() = 0;
11+
12+
virtual AudioDeviceInfo *getRecordingDefaultDevice() = 0;
13+
};
14+
15+
} // namespace ext
16+
} // namespace rtc
17+
} // namespace agora

0 commit comments

Comments
 (0)