14#ifndef OPTIONAL_ENUM_SIZE_T
15#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
16#define OPTIONAL_ENUM_SIZE_T enum : size_t
18#define OPTIONAL_ENUM_SIZE_T enum
146enum MAX_METADATA_SIZE_TYPE {
147 MAX_METADATA_SIZE_IN_BYTE = 1024
154struct PacketOptions {
160 uint8_t audioLevelIndication;
163 audioLevelIndication(127) {}
182 kMaxDataSizeSamples = 3840,
184 kMaxDataSizeBytes = kMaxDataSizeSamples *
sizeof(int16_t),
217 if (length > kMaxDataSizeSamples) {
218 length = kMaxDataSizeSamples;
221 memcpy(this->data_, src.
data_, length *
sizeof(int16_t));
242 if (length > kMaxDataSizeSamples) {
243 length = kMaxDataSizeSamples;
246 memcpy(this->data_, src.
data_, length *
sizeof(int16_t));
253enum AUDIO_DUAL_MONO_MODE {
255 AUDIO_DUAL_MONO_STEREO = 0,
257 AUDIO_DUAL_MONO_L = 1,
259 AUDIO_DUAL_MONO_R = 2,
261 AUDIO_DUAL_MONO_MIX = 3
266class IAudioFrameObserver {
276 virtual void onFrame(AudioPcmFrame* frame) = 0;
277 virtual ~IAudioFrameObserver() {}
327enum RENDER_MODE_TYPE {
332 RENDER_MODE_HIDDEN = 1,
343 RENDER_MODE_ADAPTIVE = 3,
364 eglType(EGL_CONTEXT10),
366 metadata_buffer(NULL),
374 enum EGL_CONTEXT_TYPE {
464 EGL_CONTEXT_TYPE eglType;
477 uint8_t* metadata_buffer;
516 metadata_buffer(NULL),
578 uint8_t* metadata_buffer;
601 uint8_t* alphaBuffer;
615 virtual void onFrame(
const VideoFrame* frame) = 0;
617 virtual bool isExternal() {
return true; }
621enum MEDIA_PLAYER_SOURCE_TYPE {
627 MEDIA_PLAYER_SOURCE_DEFAULT,
633 MEDIA_PLAYER_SOURCE_FULL_FEATURED,
638 MEDIA_PLAYER_SOURCE_SIMPLE,
833 virtual bool onCaptureVideoFrame(
VideoFrame& videoFrame) = 0;
856 virtual bool onSecondaryCameraCaptureVideoFrame(
VideoFrame& videoFrame) = 0;
875 virtual bool onSecondaryPreEncodeCameraVideoFrame(
VideoFrame& videoFrame) = 0;
893 virtual bool onScreenCaptureVideoFrame(
VideoFrame& videoFrame) = 0;
895 virtual bool onPreEncodeScreenVideoFrame(
VideoFrame& videoFrame) = 0;
913 virtual bool onMediaPlayerVideoFrame(
VideoFrame& videoFrame,
int mediaPlayerId) = 0;
915 virtual bool onSecondaryScreenCaptureVideoFrame(
VideoFrame& videoFrame) = 0;
917 virtual bool onSecondaryPreEncodeScreenVideoFrame(
VideoFrame& videoFrame) = 0;
1007#define MAX_CONTENT_INSPECT_MODULE_COUNT 32
1008enum CONTENT_INSPECT_RESULT {
1009 CONTENT_INSPECT_NEUTRAL = 1,
1010 CONTENT_INSPECT_SEXY = 2,
1011 CONTENT_INSPECT_PORN = 3,
1013enum CONTENT_INSPECT_DEVICE_TYPE{
1014 CONTENT_INSPECT_DEVICE_INVALID = 0,
1015 CONTENT_INSPECT_DEVICE_AGORA = 1,
1016 CONTENT_INSPECT_DEVICE_HIVE = 2,
1017 CONTENT_INSPECT_DEVICE_TUPU = 3
1019enum CONTENT_INSPECT_TYPE {
1023CONTENT_INSPECT_INVALIDE = 0,
1027CONTENT_INSPECT_MODERATION = 1,
1031CONTENT_INSPECT_SUPERVISE = 2
1033struct ContentInspectModule {
1037 CONTENT_INSPECT_TYPE type;
1041 unsigned int frequency;
unsigned int track_id_t
Definition: AgoraMediaBase.h:26
BYTES_PER_SAMPLE
Definition: AgoraMediaBase.h:38
@ TWO_BYTES_PER_SAMPLE
Definition: AgoraMediaBase.h:42
unsigned int uid_t
Definition: AgoraMediaBase.h:25
unsigned int conn_id_t
Definition: AgoraMediaBase.h:27
static const unsigned int DUMMY_CONNECTION_ID
Definition: AgoraMediaBase.h:30
RAW_AUDIO_FRAME_OP_MODE_TYPE
Definition: AgoraMediaBase.h:56
@ RAW_AUDIO_FRAME_OP_MODE_READ_WRITE
Definition: AgoraMediaBase.h:67
@ RAW_AUDIO_FRAME_OP_MODE_READ_ONLY
Definition: AgoraMediaBase.h:61
static const unsigned int DEFAULT_CONNECTION_ID
Definition: AgoraMediaBase.h:29
Definition: AgoraBase.h:86
Definition: AgoraMediaBase.h:45
size_t channels
Definition: AgoraMediaBase.h:47
int sample_rate
Definition: AgoraMediaBase.h:46
AudioParameters()
Definition: AgoraMediaBase.h:50
size_t frames_per_buffer
Definition: AgoraMediaBase.h:48
Definition: AgoraBase.h:1880