Agora C++ API Reference for All Platforms
packet_i.h
1 // Agora RTC/MEDIA SDK
2 //
3 // Created by Pengfei Han in 2019-06.
4 // Copyright (c) 2019 Agora.io. All rights reserved.
5 //
6 #pragma once
7 
8 #include <cstdint>
9 #include <list>
10 #include <memory>
11 #include <string>
12 #include <vector>
13 
14 #include "AgoraBase.h"
15 
16 namespace agora {
17 namespace rtc {
18 
19 
20 static const uint8_t kVideoEngineFlagHasIntraRequest = 0x10;
21 static const uint8_t kVideoEngineFlagStdCodec = 0x8;
22 static const uint8_t kVideoEngineFlagNasa = 0x40;
23 static const uint8_t kVideoEngineFlagScalableDelta = 0x80;
24 static const uint8_t kVideoEngineFlagMajorStreamOnly = 0x01;
25 
26 static const uint8_t kAgoraHeaderLength = 3;
27 static const uint8_t kAgoraAudioExtendLength = 5;
28 
34 };
35 
36 struct SMediaFrame {
38  uint8_t flags_;
39  uint16_t seq_;
40  uint16_t ssrc_;
41  uint64_t packetSentTs_;
42  uint64_t sentTs_;
43  uint64_t receiveTs_;
44  std::string payload_;
45  SMediaFrame() : uid_(0), flags_(0), seq_(0), ssrc_(0), sentTs_(0), receiveTs_(0) {}
46 };
47 
48 struct SAudioFrame : public SMediaFrame {
49  uint8_t codec_;
50  uint32_t ts_;
51  int8_t vad_;
52  uint8_t internalFlags_;
55 };
56 
57 using SharedSAudioFrame = std::shared_ptr<SAudioFrame>;
58 
59 struct SAudioPacket {
64  };
65  int8_t vad_;
66  uint8_t codec_;
67  uint8_t internalFlags_;
68  uint16_t seq_;
69  uint16_t ssrc_;
70  uint16_t payloadLength_;
71  uint16_t latestFrameSeq_;
72  std::list<SharedSAudioFrame> frames_;
74  : vad_(0),
75  codec_(0),
76  internalFlags_(0),
77  seq_(0),
78  ssrc_(0),
79  payloadLength_(0),
80  latestFrameSeq_(0) {}
81 };
82 
83 struct rtc_packet_t {
92  };
94  uint32_t seq;
95  uint16_t payload_length; // should be the same as payload.length()
96  uint64_t sent_ts;
97  uint64_t recv_ts;
98  int link_id;
99  uint8_t internal_flags;
100  std::string payload;
102  : uid(0), seq(0), payload_length(0), sent_ts(0), recv_ts(0), link_id(-1), internal_flags(0) {}
103  virtual ~rtc_packet_t() {}
104 };
105 
107  bool quit;
108  bool rtcp;
110  bool real_quit;
112  : quit(false), rtcp(false), need_reliable(false), real_quit(false) {}
113 };
114 
115 struct audio_packet_t : public rtc_packet_t {
116  uint32_t ts;
117  int8_t vad;
118  uint8_t codec;
119  int last_error; // error code set by last filter
120  uint32_t reqMs; // for calculating RTT only
121  uint8_t flags; // flags from SAudioFrame
122  audio_packet_t() : ts(0), vad(0), codec(0), last_error(0), reqMs(0), flags(0) {}
123 };
124 
125 struct video_packet_t : public rtc_packet_t {
134  };
135 
137  // below is for video2 only, not used in video3
141  VIDEO_FLAG_STD_CODEC = 0x8, // also for video3 to differentiate std stream and private stream
143  // below is for video3
145  };
146 
150  B_FRAME = 2,
151  };
152 
153  // TODO(Bob): This should be removed and use public API definitions.
155  VIDEO_CODEC_VP8 = 1, // std VP8
156  VIDEO_CODEC_H264 = 2, // std H264
157  VIDEO_CODEC_EVP = 3, // VP8 with BCM
158  VIDEO_CODEC_E264 = 4, // H264 with BCM
159  };
160 
162  // marks if the |req_ms| field of PVideoRexferRes_v4 is set
164  };
165 
170  };
171 
172  struct Extension {
173  bool has_extension_ = false;
175  std::vector<uint32_t> content_;
176  };
177 
178  uint32_t frameSeq;
179  uint8_t frameType;
180  uint8_t streamType;
181  uint16_t packets;
182  uint16_t subseq;
183  uint8_t fecPkgNum;
184  uint8_t codec;
185  uint8_t flags;
187  uint32_t reqMs; // for calculating RTT only
188  uint32_t reserve1;
190  int64_t transport_seq; // for transport-cc
191  int8_t cc_type;
192 
194  : frameSeq(0),
195  frameType(0),
196  streamType(0),
197  packets(0),
198  subseq(0),
199  fecPkgNum(0),
200  codec(0),
201  flags(0),
202  protocolVersion(0),
203  reqMs(0),
204  reserve1(0),
205  transport_seq(-1),
206  cc_type(0) {}
207 
208  union video3_flags {
209  struct {
210  uint8_t stream_type : 4;
211  uint8_t frame_type : 4;
212  };
213  uint8_t video_type;
214  };
215 
216  void fromVideType(uint8_t f) {
217  video3_flags t;
218  t.video_type = f;
220  frameType = t.frame_type;
221  }
222 
223  uint8_t toVideoType() const {
224  video3_flags t;
226  t.frame_type = frameType;
227  return t.video_type;
228  }
229 
230  bool hasReserveBit(uint16_t bit) { return (reserve1 & (1 << bit)) == (1 << bit); }
231 };
232 
235  bool from_vos = false;
236  std::string payload;
237 };
238 
241  std::string payload;
242 };
243 
246  int type;
247  std::string user_id;
248  std::string payload;
249 };
250 
256 };
257 
258 
260 {
261 public:
262  virtual ~IVideoListener() {}
264  {
265  int width;
266  int height;
267  unsigned int prevFrameNumber;
270  int sentQP;
272 
273  void reset() {
274  sentBytes = 0;
275  sentFrames = 0;
276  sentQP = 0;
277  sentPkgNumber = 0;
278  }
279 
281  prevFrameNumber = 0;
282  width = 640;
283  height = 360;
284  reset();
285  }
286 
287  };
289  {
290 
291  // local stat
294  int sentRtt;
295  int sentLoss;
299  unsigned int encodeTimeMs;
300  unsigned int minEncodeTimeMs;
301  unsigned int maxEncodeTimeMs;
308  unsigned int totalEncodedFrames;
312  int duration;
313  int fecLevel;
315  unsigned int maxFrameOutInterval;
323  // compressed states
324  /*
325  bit 31~28: version of this structure. value 1
326  bit 27: video engine exists. 0: not exist; 1: exit
327  bit 26: texture encode. 0: yuv encode; 1: texture encode (android only)
328  bit 25: app rendering. 0: sdk rendering; 1: app rendering
329  // bit 25: sender disabled. 0: sender enabled; 1: sender disabled (duplicate with SDK Mute Status)
330  bit 24~21: encoder codec index.
331  // bit 24: hardware encode. 0: software encode; 1: hardware encode (duplicate with Video Hardware Encode)
332  bit 20~19: fec type.
333  bit 18: has_intra_request (no periodic key frame) parameter setting.
334  bit 17~13: reserved.
335  bit 12~0: camera id.
336  */
337  unsigned int bitFieldStates;
338 
339  void reset() {
340  highStream.reset();
341  lowStream.reset();
342  sentRtt = 0;
343  sentLoss = 0;
344  sentTargetBitRate = 0;
347  encodeTimeMs = 0;
348  minEncodeTimeMs = 0;
349  maxEncodeTimeMs = 0;
350  captureWidth = 0;
351  captureHeight = 0;
352  captureFrames = 0;
353  encoderRecvFrames = 0;
354  encodedFrames = 0;
355  encodeFailFrames = 0;
356  encoderSkipFrames = 0;
357  renderedFrames = 0;
358  duration = 0;
359  fecLevel = 0;
360  estimateBandwidth = 0;
362  cameraOpenStatus = -1;
363  captureType = 0;
364  renderType = -1;
365  render_buffer_size = 0;
366  beautyCostTime = 0;
367  }
368  };
369 
371  {
372  // remote stat
373  int uid;
374  int delay;
378  int width;
379  int height;
387  int duration;
388  int decodedQP; // Add the QP reportor of decoder
389  unsigned int maxRenderInterval;
390  unsigned int lastRenderMs;
391  unsigned int minFrameNumber;
392  unsigned int maxFrameNumber;
393  unsigned int freezeCnt;
394  unsigned int freezeCnt300;
395  unsigned int freezeCnt500;
402  bool muted;
406 
407  void reset() {
408  uid = 0;
409  delay = 0;
410  width = 0;
411  height = 0;
412  renderedFrames = 0;
413  receivedBytes = 0;
414  lossAfterFec = 0;
415  decodeFailedFrames = 0;
416  //streamType = 0;
417  decodedFrames = 0;
418  rendererRecvFrames = 0;
420  decodeTimeMs = 0;
421  recvPkgNumber = 0;
422  duration = 0;
423  maxRenderInterval = 0;
424  decodedQP = 0;
425  minFrameNumber = 0xFFFFFFFF;
426  maxFrameNumber = 0;
427  freezeCnt300 = 0;
428  freezeTimeMs300 = 0;
429  freezeCnt500 = 0;
430  freezeTimeMs500 = 0;
431  freezeCnt = 0;
432  freezeTimeMs = 0;
433  isHardwareDecoding = false;
434  decoderInFrames = 0;
435  renderType = -1;
436  render_buffer_size = 0;
438  isSuperResolutionEnabled = false;
439  }
440  };
441 
442  // #define VIDEO_ENGINE_FLAG_KEY_FRAME 0x00000080
443  // #define VIDEO_ENGINE_FLAG_FEC 0x00000040
444  // #define VIDEO_ENGINE_FLAG_LIVE 0x00000020
445  // #define VIDEO_ENGINE_FLAG_B_FRAME 0x00000010
446  #define VIDEO_ENGINE_FLAG_SCALABLE_DELTA 0x00000080
447  #define VIDEO_ENGINE_FLAG_NASA 0x00000040
448  #define VIDEO_ENGINE_FLAG_HAS_PISE 0x00000020
449  #define VIDEO_ENGINE_FLAG_HAS_INTRA_REQUEST 0x00000010
450  #define VIDEO_ENGINE_FLAG_STD_CODEC 0x00000008
451  #define VIDEO_ENGINE_FLAG_HARDWARE_ENCODE 0x00000004
452  #define VIDEO_ENGINE_FLAG_NEW_AVSYNC_TIMESTAMP 0x00000002
453  #define VIDEO_ENGINE_FLAG_MULTI_STREAM 0x00000001
454 
458  B_FRAME = 2,
461  };
467  };
476  };
477  struct PacketInfo
478  {
479  const void* packet;
480  unsigned short packetLen;
481  unsigned int frame_num;
482  uint16_t frame_pkg_num;
484  unsigned char fec_num;
485  unsigned char fec_method;
489  unsigned int flag;
490  int version;
491  unsigned short reserve1;
492  };
493  struct AutStreamData {
494  uint16_t bandwidth;
497  };
499  uint16_t rtt;
500  uint16_t lost_ratio;
501  uint16_t bwe;
502  uint16_t padding;
503  uint16_t total_sent;
504  uint16_t queueing_time;
506  uint16_t allocated;
507  uint16_t mtu;
508  uint16_t jitter95;
509  std::list<AutStreamData> stream_info;
510  };
511 
512  virtual int sendVideoPacket(const PacketInfo& info) = 0;
513  virtual int sendVideoRtcpPacket(unsigned int uid, const void* packet, unsigned short packetLen, bool isToVos) = 0;
514 
515  // new interface for feedback message
516  virtual int sendVideoRtcpFeedbackPacket(const VideoFeedbackPacketType type, unsigned int toUid, const void* packet, int packetSize) = 0;
517 
518  virtual void onRemoteFirstFrameDrawed(int viewIndex, unsigned int uid, int width, int height) = 0;
519  virtual void onLocalFirstFrameDrawed(int width, int height) = 0;
520  virtual void onRemoteFirstFrameDecoded(unsigned int uid, int width, int height) = 0;
521  virtual void onRemoteVideoInterrupted(unsigned int uid, unsigned int elapse_time) = 0;
522  virtual void onVideoStat(const LocalVideoStat& localStat, RemoteVideoStat* remoteStat, int remoteCount) = 0;
523  virtual void onVideoProfile(unsigned int width, unsigned int height, unsigned int fps, unsigned int bitrate) = 0;
524  virtual void switchVideoStream(unsigned int uid, VideoStreamType stream) = 0;
525  virtual void onBandWidthLevelChanged(int level) = 0;
526  virtual void onCameraFocusAreaChanged(int x, int y, int width, int height) = 0;
527  virtual void onCameraExposureAreaChanged(int x, int y, int width, int height) = 0;
528  virtual void onVideoViewSizeChanged(int userID, int newWidth, int newHeight) {
529  (void)userID;
530  (void)newWidth;
531  (void)newHeight;
532  }
533 
534  virtual void onVideoFrameFrozen(unsigned int uid, bool frozen) = 0;
535 
536  virtual void onAppSetVideoStartBitRate(int value) = 0;
537 
538  virtual int onEncodeVideoSEI(char** info, int *len) = 0;
539  virtual void onVideoSizeChanged(unsigned int uid, int newWidth, int newHeight, int newRotation) {
540  (void)uid;
541  (void)newWidth;
542  (void)newHeight;
543  (void)newRotation;
544  }
545 
546  virtual void onSendVideoPaced(bool status) = 0;
547  virtual void onBWELevel(int level) = 0;
548  virtual void onVideoRexferStatus(bool status, int target_bitrate) = 0;
549  virtual void onStartCaptureSuccess() = 0;
550  // add for sei
551  virtual int onSendSEI(char **info, int *len, long long timeStampMs, int streamType, bool isDualStream) = 0;
552  virtual int onReceiveSEI(char *info, int len, unsigned int uid, long long timeStampMs) = 0;
554  uint32_t max_kbps, uint32_t min_kbps) = 0;
555 };
556 
557 } // namespace rtc
558 } // namespace agora
agora::rtc::IVideoListener::sendVideoRtcpFeedbackPacket
virtual int sendVideoRtcpFeedbackPacket(const VideoFeedbackPacketType type, unsigned int toUid, const void *packet, int packetSize)=0
agora::rtc::IVideoListener::onSendSEI
virtual int onSendSEI(char **info, int *len, long long timeStampMs, int streamType, bool isDualStream)=0
agora::rtc::IVideoListener::LocalVideoStreamStat::sentBytes
int sentBytes
Definition: packet_i.h:268
agora::rtc::IVideoListener::PacketInfo::frame_type
VideoFrameType frame_type
Definition: packet_i.h:487
agora::rtc::VideoStreamType
VideoStreamType
Definition: packet_i.h:251
agora::rtc::IVideoListener::onBandWidthLevelChanged
virtual void onBandWidthLevelChanged(int level)=0
agora::rtc::IVideoListener::LocalVideoStreamStat::sentPkgNumber
int sentPkgNumber
Definition: packet_i.h:271
agora::rtc::IVideoListener::RemoteVideoStat::duration
int duration
Definition: packet_i.h:387
agora::rtc::audio_packet_t::vad
int8_t vad
Definition: packet_i.h:117
agora::rtc::IVideoListener::VIDEO_FEEDBACK_INTRA_REQUEST
@ VIDEO_FEEDBACK_INTRA_REQUEST
Definition: packet_i.h:469
agora::rtc::SMediaFrame::flags_
uint8_t flags_
Definition: packet_i.h:38
agora::rtc::IVideoListener::DELTA_FRAME
@ DELTA_FRAME
Definition: packet_i.h:457
agora::rtc::IVideoListener::RemoteVideoStat::delay
int delay
Definition: packet_i.h:374
agora::rtc::video_packet_t::cc_type
int8_t cc_type
Definition: packet_i.h:191
agora::rtc::rtc_packet_t::RTC_FLAG_FROM_VOS
@ RTC_FLAG_FROM_VOS
Definition: packet_i.h:86
agora::rtc::LIVE_VIDEO_STREAM
@ LIVE_VIDEO_STREAM
Definition: packet_i.h:255
agora::rtc::IVideoListener::PacketInfo::frame_pkg_num
uint16_t frame_pkg_num
Definition: packet_i.h:482
agora::rtc::IVideoListener::onRemoteFirstFrameDecoded
virtual void onRemoteFirstFrameDecoded(unsigned int uid, int width, int height)=0
agora::rtc::IVideoListener::LocalVideoStat::render_buffer_size
uint64_t render_buffer_size
Definition: packet_i.h:321
agora::rtc::video_packet_t::VIDEO_STREAM_MEDIUM
@ VIDEO_STREAM_MEDIUM
Definition: packet_i.h:130
agora::rtc::SAudioPacket::vad_
int8_t vad_
Definition: packet_i.h:65
agora::rtc::IVideoListener::LocalVideoStat::sentLoss
int sentLoss
Definition: packet_i.h:295
agora::rtc::SAudioFrame::SAudioFrame
SAudioFrame()
Definition: packet_i.h:54
agora::rtc::IVideoListener::LocalVideoStat::captureWidth
int captureWidth
Definition: packet_i.h:302
agora::rtc::rtc_packet_t::RTC_FLAG_FROM_P2P
@ RTC_FLAG_FROM_P2P
Definition: packet_i.h:87
agora::rtc::IVideoListener::VideoFeedbackPacketType
VideoFeedbackPacketType
Definition: packet_i.h:468
agora::rtc::kVideoEngineFlagMajorStreamOnly
static const uint8_t kVideoEngineFlagMajorStreamOnly
Definition: packet_i.h:24
agora::rtc::IVideoListener::VIDEO_CODEC_H264
@ VIDEO_CODEC_H264
Definition: packet_i.h:464
agora::rtc::IVideoListener::LocalVideoStat::totalEncodedFrames
unsigned int totalEncodedFrames
Definition: packet_i.h:308
agora::rtc::IVideoListener::LocalVideoStreamStat::prevFrameNumber
unsigned int prevFrameNumber
Definition: packet_i.h:267
agora::rtc::IVideoListener::LocalVideoStat::captureType
int captureType
Definition: packet_i.h:319
agora::rtc::SMediaFrame::SMediaFrame
SMediaFrame()
Definition: packet_i.h:45
agora::rtc::IVideoListener::LocalVideoStat::fecLevel
int fecLevel
Definition: packet_i.h:313
agora::rtc::audio_packet_t::ts
uint32_t ts
Definition: packet_i.h:116
agora::rtc::IVideoListener::VideoCodecType
VideoCodecType
Definition: packet_i.h:462
agora::rtc::IVideoListener::VIDEO_FEEDBACK_DISABLE_INTRA_FEC
@ VIDEO_FEEDBACK_DISABLE_INTRA_FEC
Definition: packet_i.h:470
agora::rtc::IVideoListener::LocalVideoStat::encodeFailFrames
int encodeFailFrames
Definition: packet_i.h:309
agora::rtc::SAudioPacket::payloadLength_
uint16_t payloadLength_
Definition: packet_i.h:70
agora::rtc::IVideoListener::PacketInfo
Definition: packet_i.h:478
agora::rtc::SAudioPacket::AUDIO_PACKET_REXFERRED
@ AUDIO_PACKET_REXFERRED
Definition: packet_i.h:61
agora::rtc::IVideoListener::onVideoStat
virtual void onVideoStat(const LocalVideoStat &localStat, RemoteVideoStat *remoteStat, int remoteCount)=0
agora::rtc::IVideoListener::VIDEO_FEEDBACK_AUT
@ VIDEO_FEEDBACK_AUT
Definition: packet_i.h:475
agora::rtc::IVideoListener::VIDEO_CODEC_E264
@ VIDEO_CODEC_E264
Definition: packet_i.h:466
agora::rtc::IVideoListener::LocalVideoStat::maxEncodeTimeMs
unsigned int maxEncodeTimeMs
Definition: packet_i.h:301
agora::rtc::IVideoListener::RemoteVideoStat::freezeTimeMs300
int freezeTimeMs300
Definition: packet_i.h:397
agora::rtc::SAudioPacket::ssrc_
uint16_t ssrc_
Definition: packet_i.h:69
agora::rtc::IVideoListener::AutFeedbackData::rtt
uint16_t rtt
Definition: packet_i.h:499
agora::rtc::IVideoListener::PacketInfo::pkg_seq_in_frame
uint16_t pkg_seq_in_frame
Definition: packet_i.h:483
agora::rtc::video_packet_t::B_FRAME
@ B_FRAME
Definition: packet_i.h:150
agora::rtc::IVideoListener::onCameraExposureAreaChanged
virtual void onCameraExposureAreaChanged(int x, int y, int width, int height)=0
agora::rtc::video_packet_t::VIDEO_FLAG_LIVE
@ VIDEO_FLAG_LIVE
Definition: packet_i.h:140
agora::rtc::IVideoListener::RemoteVideoStat::freezeCnt500
unsigned int freezeCnt500
Definition: packet_i.h:395
agora::rtc::IVideoListener::RemoteVideoStat::height
int height
Definition: packet_i.h:379
agora::rtc::MEDIA_STREAM_TYPE_VIDEO_HIGH
@ MEDIA_STREAM_TYPE_VIDEO_HIGH
Definition: packet_i.h:32
agora::rtc::video_report_packet_t::user_id
std::string user_id
Definition: packet_i.h:247
agora::rtc::broadcast_packet_t::rtcp
bool rtcp
Definition: packet_i.h:108
agora::rtc::video_packet_t::video3_flags::stream_type
uint8_t stream_type
Definition: packet_i.h:210
agora::rtc::SMediaFrame::payload_
std::string payload_
Definition: packet_i.h:44
agora::rtc::SAudioFrame::codec_
uint8_t codec_
Definition: packet_i.h:49
agora::rtc::IVideoListener::RemoteVideoStat::freezeCnt
unsigned int freezeCnt
Definition: packet_i.h:393
agora::rtc::IVideoListener::RemoteVideoStat::receivedBytes
int receivedBytes
Definition: packet_i.h:376
agora::rtc::IVideoListener::LocalVideoStreamStat::height
int height
Definition: packet_i.h:266
agora::rtc::SAudioFrame::ts_
uint32_t ts_
Definition: packet_i.h:50
agora::rtc::video_custom_ctrl_broadcast_packet_t::payload
std::string payload
Definition: packet_i.h:241
agora::rtc::video_packet_t::frameSeq
uint32_t frameSeq
Definition: packet_i.h:178
agora::rtc::IVideoListener::SCALABLE_DELTA_FRAME
@ SCALABLE_DELTA_FRAME
Definition: packet_i.h:460
agora::rtc::IVideoListener::RemoteVideoStat::uid
int uid
Definition: packet_i.h:373
agora::rtc::IVideoListener::LocalVideoStat::uplinkFreezeCount
int uplinkFreezeCount
Definition: packet_i.h:316
agora::rtc::IVideoListener::PacketInfo::frame_num
unsigned int frame_num
Definition: packet_i.h:481
agora::rtc::IVideoListener::RemoteVideoStat::decodeFailedFrames
int decodeFailedFrames
Definition: packet_i.h:381
agora::rtc::IVideoListener::RemoteVideoStat::renderType
int renderType
Definition: packet_i.h:401
agora::rtc::IVideoListener::LocalVideoStreamStat::sentFrames
int sentFrames
Definition: packet_i.h:269
agora::rtc::IVideoListener::PacketInfo::fec_num
unsigned char fec_num
Definition: packet_i.h:484
agora::rtc::IVideoListener::AutFeedbackData::lost_ratio
uint16_t lost_ratio
Definition: packet_i.h:500
agora::rtc::video_packet_t::streamType
uint8_t streamType
Definition: packet_i.h:180
agora::rtc::IVideoListener::AutFeedbackData::queueing_time
uint16_t queueing_time
Definition: packet_i.h:504
agora::rtc::rtc_packet_t::payload
std::string payload
Definition: packet_i.h:100
agora::rtc::video_custom_ctrl_broadcast_packet_t::uid
rtc::uid_t uid
Definition: packet_i.h:240
agora::rtc::IVideoListener::onVideoFrameFrozen
virtual void onVideoFrameFrozen(unsigned int uid, bool frozen)=0
agora::rtc::IVideoListener::onReceiveSEI
virtual int onReceiveSEI(char *info, int len, unsigned int uid, long long timeStampMs)=0
agora::rtc::IVideoListener::AutStreamData::expected_stream_type
uint8_t expected_stream_type
Definition: packet_i.h:496
agora::rtc::IVideoListener::AutFeedbackData::mtu
uint16_t mtu
Definition: packet_i.h:507
agora::rtc::IVideoListener::AutStreamData
Definition: packet_i.h:493
agora::rtc::video_packet_t::video_packet_t
video_packet_t()
Definition: packet_i.h:193
agora::rtc::IVideoListener::VIDEO_FEEDBACK_REQUEST_MULTISTREAM
@ VIDEO_FEEDBACK_REQUEST_MULTISTREAM
Definition: packet_i.h:474
agora::rtc::IVideoListener::RemoteVideoStat::maxFrameNumber
unsigned int maxFrameNumber
Definition: packet_i.h:392
agora::rtc::LOW_BITRATE_VIDEO_STREAM
@ LOW_BITRATE_VIDEO_STREAM
Definition: packet_i.h:253
agora::rtc::IVideoListener::onVideoSizeChanged
virtual void onVideoSizeChanged(unsigned int uid, int newWidth, int newHeight, int newRotation)
Definition: packet_i.h:539
agora::rtc::rtc_packet_t::rtc_packet_t
rtc_packet_t()
Definition: packet_i.h:101
agora::rtc::SAudioPacket::AUDIO_PACKET_FROM_P2P
@ AUDIO_PACKET_FROM_P2P
Definition: packet_i.h:63
agora::rtc::IVideoListener::LocalVideoStat
Definition: packet_i.h:289
agora::rtc::video_report_packet_t::uid
rtc::uid_t uid
Definition: packet_i.h:245
agora::rtc::IVideoListener::LocalVideoStat::captureHeight
int captureHeight
Definition: packet_i.h:303
agora::rtc::video_packet_t::video3_flags::frame_type
uint8_t frame_type
Definition: packet_i.h:211
agora::rtc::video_packet_t::VIDEO_STREAM_MAX
@ VIDEO_STREAM_MAX
Definition: packet_i.h:133
agora::rtc::video_packet_t::VIDEO_STREAM_HIGH
@ VIDEO_STREAM_HIGH
Definition: packet_i.h:128
agora::rtc::video_packet_t::VIDEO_STREAM_LOW
@ VIDEO_STREAM_LOW
Definition: packet_i.h:129
agora::rtc::IVideoListener::AutFeedbackData::total_sent
uint16_t total_sent
Definition: packet_i.h:503
agora::rtc::kAgoraHeaderLength
static const uint8_t kAgoraHeaderLength
Definition: packet_i.h:26
agora::rtc::SMediaFrame::packetSentTs_
uint64_t packetSentTs_
Definition: packet_i.h:41
agora::rtc::video_packet_t::toVideoType
uint8_t toVideoType() const
Definition: packet_i.h:223
agora::rtc::IVideoListener::LocalVideoStat::sentTargetFrameRate
int sentTargetFrameRate
Definition: packet_i.h:297
agora::rtc::SAudioPacket::internalFlags_
uint8_t internalFlags_
Definition: packet_i.h:67
agora::rtc::SMediaFrame::receiveTs_
uint64_t receiveTs_
Definition: packet_i.h:43
agora
Definition: AgoraAtomicOps.h:21
agora::rtc::IVideoListener::RemoteVideoStat::freezeCnt300
unsigned int freezeCnt300
Definition: packet_i.h:394
agora::rtc::video_packet_t::EXTENSION_VERSION
EXTENSION_VERSION
Definition: packet_i.h:166
agora::rtc::broadcast_packet_t::real_quit
bool real_quit
Definition: packet_i.h:110
agora::rtc::video_packet_t::reqMs
uint32_t reqMs
Definition: packet_i.h:187
agora::rtc::IVideoListener::RemoteVideoStat::lossAfterFec
int lossAfterFec
Definition: packet_i.h:380
agora::rtc::rtc_packet_t::sent_ts
uint64_t sent_ts
Definition: packet_i.h:96
agora::rtc::video_packet_t::Extension
Definition: packet_i.h:172
agora::rtc::IVideoListener::RemoteVideoStat::maxRenderInterval
unsigned int maxRenderInterval
Definition: packet_i.h:389
agora::rtc::MEDIA_STREAM_TYPE_AUDIO
@ MEDIA_STREAM_TYPE_AUDIO
Definition: packet_i.h:30
agora::rtc::IVideoListener::sendVideoRtcpPacket
virtual int sendVideoRtcpPacket(unsigned int uid, const void *packet, unsigned short packetLen, bool isToVos)=0
agora::rtc::IVideoListener::onRemoteFirstFrameDrawed
virtual void onRemoteFirstFrameDrawed(int viewIndex, unsigned int uid, int width, int height)=0
agora::rtc::IVideoListener::RemoteVideoStat::freezeTimeMs
int freezeTimeMs
Definition: packet_i.h:396
agora::rtc::IVideoListener::LocalVideoStat::maxFrameOutInterval
unsigned int maxFrameOutInterval
Definition: packet_i.h:315
agora::rtc::video_packet_t::VIDEO_EXTRA_FLAG_TIMESTAMP_SET
@ VIDEO_EXTRA_FLAG_TIMESTAMP_SET
Definition: packet_i.h:163
agora::rtc::rtc_packet_t::recv_ts
uint64_t recv_ts
Definition: packet_i.h:97
agora::rtc::SAudioFrame::internalFlags_
uint8_t internalFlags_
Definition: packet_i.h:52
agora::rtc::IVideoListener::RemoteVideoStat::renderedFrames
int renderedFrames
Definition: packet_i.h:375
agora::rtc::rtc_packet_t::RTC_FLAG_FROM_BROADCAST
@ RTC_FLAG_FROM_BROADCAST
Definition: packet_i.h:88
agora::rtc::video_rtcp_packet_t::uid
rtc::uid_t uid
Definition: packet_i.h:234
agora::rtc::video_packet_t::EXTENSION_VERSION_1
@ EXTENSION_VERSION_1
Definition: packet_i.h:168
agora::rtc::audio_packet_t::audio_packet_t
audio_packet_t()
Definition: packet_i.h:122
agora::rtc::video_packet_t::packets
uint16_t packets
Definition: packet_i.h:181
agora::rtc::IVideoListener::sendVideoPacket
virtual int sendVideoPacket(const PacketInfo &info)=0
agora::rtc::IVideoListener::LocalVideoStat::sentTargetBitRate
int sentTargetBitRate
Definition: packet_i.h:296
agora::rtc::IVideoListener::RemoteVideoStat::width
int width
Definition: packet_i.h:378
agora::rtc::IVideoListener::LocalVideoStat::renderType
int renderType
Definition: packet_i.h:320
agora::rtc::video_packet_t::fecPkgNum
uint8_t fecPkgNum
Definition: packet_i.h:183
agora::rtc::IVideoListener::RemoteVideoStat::decoderInFrames
int decoderInFrames
Definition: packet_i.h:400
agora::rtc::IVideoListener::LocalVideoStreamStat::reset
void reset()
Definition: packet_i.h:273
agora::rtc::IVideoListener::LocalVideoStat::encodedFrames
int encodedFrames
Definition: packet_i.h:306
agora::rtc::SAudioPacket::AUDIO_PACKET_FROM_VOS
@ AUDIO_PACKET_FROM_VOS
Definition: packet_i.h:62
agora::rtc::IVideoListener::onLocalFirstFrameDrawed
virtual void onLocalFirstFrameDrawed(int width, int height)=0
agora::rtc::IVideoListener::onBWELevel
virtual void onBWELevel(int level)=0
agora::rtc::video_packet_t::Extension::content_
std::vector< uint32_t > content_
Definition: packet_i.h:175
agora::rtc::IVideoListener::RemoteVideoStat::decodeBgDroppedFrames
int decodeBgDroppedFrames
Definition: packet_i.h:404
agora::rtc::video_packet_t::Extension::has_extension_
bool has_extension_
Definition: packet_i.h:173
agora::rtc::IVideoListener::LocalVideoStat::cameraOpenStatus
int cameraOpenStatus
Definition: packet_i.h:318
agora::rtc::kVideoEngineFlagStdCodec
static const uint8_t kVideoEngineFlagStdCodec
Definition: packet_i.h:21
agora::rtc::video_packet_t::KEY_FRAME
@ KEY_FRAME
Definition: packet_i.h:148
agora::rtc::video_packet_t::EXTENSION_VERSION_2
@ EXTENSION_VERSION_2
Definition: packet_i.h:169
agora::rtc::SMediaFrame::uid_
uid_t uid_
Definition: packet_i.h:37
agora::rtc::kAgoraAudioExtendLength
static const uint8_t kAgoraAudioExtendLength
Definition: packet_i.h:27
agora::rtc::IVideoListener::PacketInfo::packetLen
unsigned short packetLen
Definition: packet_i.h:480
agora::rtc::SAudioPacket::AUDIO_PACKET_TYPE
AUDIO_PACKET_TYPE
Definition: packet_i.h:60
agora::rtc::IVideoListener::LocalVideoStreamStat
Definition: packet_i.h:264
agora::rtc::video_packet_t::VIDEO_CODEC_EVP
@ VIDEO_CODEC_EVP
Definition: packet_i.h:157
agora::rtc::IVideoListener::onEncodeVideoSEI
virtual int onEncodeVideoSEI(char **info, int *len)=0
agora::rtc::IVideoListener::RemoteVideoStat::lastRenderMs
unsigned int lastRenderMs
Definition: packet_i.h:390
agora::rtc::video_packet_t::VIDEO_CODEC_E264
@ VIDEO_CODEC_E264
Definition: packet_i.h:158
agora::rtc::video_packet_t
Definition: packet_i.h:125
agora::rtc::video_packet_t::EXTENSION_VERSION_0
@ EXTENSION_VERSION_0
Definition: packet_i.h:167
agora::rtc::broadcast_packet_t::need_reliable
bool need_reliable
Definition: packet_i.h:109
agora::rtc::rtc_packet_t::internal_flags
uint8_t internal_flags
Definition: packet_i.h:99
agora::rtc::video_rtcp_packet_t
Definition: packet_i.h:233
agora::rtc::MEDIUM_BITRATE_VIDEO_STREAM
@ MEDIUM_BITRATE_VIDEO_STREAM
Definition: packet_i.h:254
agora::rtc::video_packet_t::protocolVersion
uint8_t protocolVersion
Definition: packet_i.h:186
agora::rtc::SMediaFrame
Definition: packet_i.h:36
agora::rtc::IVideoListener::onVideoRexferStatus
virtual void onVideoRexferStatus(bool status, int target_bitrate)=0
agora::rtc::video_packet_t::VIDEO_STREAM_TYPE
VIDEO_STREAM_TYPE
Definition: packet_i.h:126
agora::rtc::audio_packet_t::flags
uint8_t flags
Definition: packet_i.h:121
agora::rtc::IVideoListener::onCameraFocusAreaChanged
virtual void onCameraFocusAreaChanged(int x, int y, int width, int height)=0
agora::rtc::IVideoListener::RemoteVideoStat::muted
bool muted
Definition: packet_i.h:402
agora::rtc::rtc_packet_t::~rtc_packet_t
virtual ~rtc_packet_t()
Definition: packet_i.h:103
agora::rtc::IVideoListener::PacketInfo::packet
const void * packet
Definition: packet_i.h:479
agora::rtc::SAudioFrame
Definition: packet_i.h:48
agora::rtc::IVideoListener::LocalVideoStat::renderedFrames
int renderedFrames
Definition: packet_i.h:311
agora::rtc::video_packet_t::VIDEO_STREAM_MIN
@ VIDEO_STREAM_MIN
Definition: packet_i.h:132
agora::rtc::IVideoListener::VIDEO_FEEDBACK_BANDWIDTH_ESTIMATION
@ VIDEO_FEEDBACK_BANDWIDTH_ESTIMATION
Definition: packet_i.h:473
agora::rtc::broadcast_packet_t::quit
bool quit
Definition: packet_i.h:107
agora::rtc::IVideoListener::RemoteVideoStat::reset
void reset()
Definition: packet_i.h:407
agora::rtc::IVideoListener::LocalVideoStat::sentBitrateExcludeFec
int sentBitrateExcludeFec
Definition: packet_i.h:298
agora::rtc::IVideoListener::LocalVideoStat::captureFrames
int captureFrames
Definition: packet_i.h:304
agora::rtc::IVideoListener::AutStreamData::bandwidth
uint16_t bandwidth
Definition: packet_i.h:494
agora::rtc::IVideoListener::PacketInfo::fec_method
unsigned char fec_method
Definition: packet_i.h:485
agora::rtc::audio_packet_t::codec
uint8_t codec
Definition: packet_i.h:118
agora::rtc::IVideoListener::RemoteVideoStat::freezeTimeMs500
int freezeTimeMs500
Definition: packet_i.h:398
agora::rtc::video_packet_t::VIDEO_STREAM_UNKNOWN
@ VIDEO_STREAM_UNKNOWN
Definition: packet_i.h:127
agora::rtc::MEDIA_STREAM_TYPE_VIDEO
@ MEDIA_STREAM_TYPE_VIDEO
Definition: packet_i.h:33
agora::rtc::IVideoListener::RemoteVideoStat::decodedFrames
int decodedFrames
Definition: packet_i.h:384
agora::rtc::video_packet_t::VIDEO_CODEC_H264
@ VIDEO_CODEC_H264
Definition: packet_i.h:156
agora::rtc::video_packet_t::video3_flags::video_type
uint8_t video_type
Definition: packet_i.h:213
agora::rtc::broadcast_packet_t
Definition: packet_i.h:106
agora::rtc::rtc_packet_t::payload_length
uint16_t payload_length
Definition: packet_i.h:95
agora::rtc::rtc_packet_t::VIDEO_FLAG_TIMESTAMP_SET
@ VIDEO_FLAG_TIMESTAMP_SET
Definition: packet_i.h:89
agora::rtc::SAudioPacket::codec_
uint8_t codec_
Definition: packet_i.h:66
agora::rtc::IVideoListener::AutFeedbackData::active_uid_counts
uint16_t active_uid_counts
Definition: packet_i.h:505
agora::rtc::IVideoListener::LocalVideoStreamStat::width
int width
Definition: packet_i.h:265
agora::rtc::audio_packet_t
Definition: packet_i.h:115
agora::rtc::IVideoListener::LocalVideoStat::encoderRecvFrames
int encoderRecvFrames
Definition: packet_i.h:305
agora::rtc::IVideoListener::RemoteVideoStat::decodeTimeMs
int decodeTimeMs
Definition: packet_i.h:386
agora::rtc::video_packet_t::hasReserveBit
bool hasReserveBit(uint16_t bit)
Definition: packet_i.h:230
agora::rtc::IVideoListener::KEY_FRAME
@ KEY_FRAME
Definition: packet_i.h:456
agora::rtc::IVideoListener::LocalVideoStat::encodeTimeMs
unsigned int encodeTimeMs
Definition: packet_i.h:299
agora::rtc::IVideoListener::PacketInfo::codec_type
int codec_type
Definition: packet_i.h:486
agora::rtc::IVideoListener::LocalVideoStreamStat::sentQP
int sentQP
Definition: packet_i.h:270
agora::rtc::kVideoEngineFlagHasIntraRequest
static const uint8_t kVideoEngineFlagHasIntraRequest
Definition: packet_i.h:20
agora::rtc::IVideoListener::LocalVideoStat::bitFieldStates
unsigned int bitFieldStates
Definition: packet_i.h:337
agora::rtc::IVideoListener::RemoteVideoStat::isHardwareDecoding
bool isHardwareDecoding
Definition: packet_i.h:399
agora::rtc::video_packet_t::fromVideType
void fromVideType(uint8_t f)
Definition: packet_i.h:216
agora::rtc::video_rtcp_packet_t::from_vos
bool from_vos
Definition: packet_i.h:235
agora::rtc::IVideoListener::LocalVideoStat::beautyCostTime
int beautyCostTime
Definition: packet_i.h:322
agora::rtc::IVideoListener::RemoteVideoStat::render_buffer_size
uint64_t render_buffer_size
Definition: packet_i.h:403
agora::rtc::SAudioPacket::latestFrameSeq_
uint16_t latestFrameSeq_
Definition: packet_i.h:71
agora::rtc::IVideoListener::AutStreamData::recv_stream_type
uint8_t recv_stream_type
Definition: packet_i.h:495
agora::rtc::rtc_packet_t::link_id
int link_id
Definition: packet_i.h:98
agora::rtc::video_packet_t::VIDEO_FLAG_TYPE
VIDEO_FLAG_TYPE
Definition: packet_i.h:136
agora::rtc::IVideoListener::LocalVideoStat::encodedKeyFrames
int encodedKeyFrames
Definition: packet_i.h:307
agora::rtc::IVideoListener::onVideoProfile
virtual void onVideoProfile(unsigned int width, unsigned int height, unsigned int fps, unsigned int bitrate)=0
agora::rtc::video_report_packet_t::type
int type
Definition: packet_i.h:246
agora::rtc::video_packet_t::VIDEO_FLAG_HARDWARE_ENCODE
@ VIDEO_FLAG_HARDWARE_ENCODE
Definition: packet_i.h:144
agora::rtc::SMediaFrame::ssrc_
uint16_t ssrc_
Definition: packet_i.h:40
agora::rtc::video_packet_t::VIDEO_FLAG_KEY_FRAME
@ VIDEO_FLAG_KEY_FRAME
Definition: packet_i.h:138
agora::rtc::broadcast_packet_t::broadcast_packet_t
broadcast_packet_t()
Definition: packet_i.h:111
agora::rtc::MEDIA_STREAM_TYPE_VIDEO_LOW
@ MEDIA_STREAM_TYPE_VIDEO_LOW
Definition: packet_i.h:31
agora::rtc::IVideoListener::RemoteVideoStat::isSuperResolutionEnabled
bool isSuperResolutionEnabled
Definition: packet_i.h:405
agora::rtc::SAudioPacket::SAudioPacket
SAudioPacket()
Definition: packet_i.h:73
agora::rtc::IVideoListener::LocalVideoStat::estimateBandwidth
int estimateBandwidth
Definition: packet_i.h:314
agora::rtc::SMediaFrame::sentTs_
uint64_t sentTs_
Definition: packet_i.h:42
agora::rtc::audio_packet_t::reqMs
uint32_t reqMs
Definition: packet_i.h:120
agora::rtc::video_packet_t::VIDEO_FLAG_FEC
@ VIDEO_FLAG_FEC
Definition: packet_i.h:139
agora::rtc::IVideoListener::VIDEO_FEEDBACK_INTRA_REQUEST_QUICK
@ VIDEO_FEEDBACK_INTRA_REQUEST_QUICK
Definition: packet_i.h:471
agora::rtc::SAudioPacket::frames_
std::list< SharedSAudioFrame > frames_
Definition: packet_i.h:72
agora::rtc::IVideoListener::PacketInfo::reserve1
unsigned short reserve1
Definition: packet_i.h:491
agora::rtc::rtc_packet_t::uid
uid_t uid
Definition: packet_i.h:93
agora::rtc::SAudioFrame::vad_
int8_t vad_
Definition: packet_i.h:51
agora::rtc::IVideoListener::VIDEO_CODEC_EVP
@ VIDEO_CODEC_EVP
Definition: packet_i.h:465
agora::rtc::rtc_packet_t::seq
uint32_t seq
Definition: packet_i.h:94
agora::rtc::IVideoListener::AutFeedbackData::jitter95
uint16_t jitter95
Definition: packet_i.h:508
agora::rtc::MEDIA_STREAM_TYPE
MEDIA_STREAM_TYPE
Definition: packet_i.h:29
agora::rtc::video_packet_t::frameType
uint8_t frameType
Definition: packet_i.h:179
agora::rtc::IVideoListener::LocalVideoStat::uplinkFreezeTime
int uplinkFreezeTime
Definition: packet_i.h:317
agora::rtc::audio_packet_t::last_error
int last_error
Definition: packet_i.h:119
agora::rtc::IVideoListener::RemoteVideoStat::decodeRejectedFrames
int decodeRejectedFrames
Definition: packet_i.h:382
agora::rtc::IVideoListener::RemoteVideoStat
Definition: packet_i.h:371
agora::rtc::IVideoListener::AutFeedbackData::stream_info
std::list< AutStreamData > stream_info
Definition: packet_i.h:509
agora::rtc::video_packet_t::extension
Extension extension
Definition: packet_i.h:189
agora::rtc::SAudioPacket::seq_
uint16_t seq_
Definition: packet_i.h:68
agora::rtc::IVideoListener::LocalVideoStat::encoderSkipFrames
int encoderSkipFrames
Definition: packet_i.h:310
agora::rtc::video_report_packet_t
Definition: packet_i.h:244
agora::rtc::video_custom_ctrl_broadcast_packet_t
Definition: packet_i.h:239
agora::rtc::video_packet_t::VIDEO_CODEC_TYPE
VIDEO_CODEC_TYPE
Definition: packet_i.h:154
agora::rtc::rtc_packet_t
Definition: packet_i.h:83
agora::rtc::SAudioPacket
Definition: packet_i.h:59
agora::rtc::IVideoListener::LocalVideoStreamStat::LocalVideoStreamStat
LocalVideoStreamStat()
Definition: packet_i.h:280
agora::rtc::IVideoListener::RemoteVideoStat::decodedQP
int decodedQP
Definition: packet_i.h:388
agora::rtc::video_packet_t::transport_seq
int64_t transport_seq
Definition: packet_i.h:190
agora::rtc::kVideoEngineFlagNasa
static const uint8_t kVideoEngineFlagNasa
Definition: packet_i.h:22
agora::rtc::IVideoListener::AutFeedbackData::padding
uint16_t padding
Definition: packet_i.h:502
agora::rtc::IVideoListener::onVideoViewSizeChanged
virtual void onVideoViewSizeChanged(int userID, int newWidth, int newHeight)
Definition: packet_i.h:528
agora::rtc::video_packet_t::Extension::tag_
uint16_t tag_
Definition: packet_i.h:174
agora::rtc::video_packet_t::subseq
uint16_t subseq
Definition: packet_i.h:182
agora::rtc::kVideoEngineFlagScalableDelta
static const uint8_t kVideoEngineFlagScalableDelta
Definition: packet_i.h:23
agora::rtc::IVideoListener::LocalVideoStat::duration
int duration
Definition: packet_i.h:312
agora::rtc::IVideoListener::onAppSetVideoStartBitRate
virtual void onAppSetVideoStartBitRate(int value)=0
agora::rtc::IVideoListener::PacketInfo::flag
unsigned int flag
Definition: packet_i.h:489
agora::rtc::IVideoListener::LocalVideoStat::highStream
LocalVideoStreamStat highStream
Definition: packet_i.h:292
agora::rtc::video_packet_t::video3_flags
Definition: packet_i.h:208
agora::rtc::video_packet_t::VIDEO_FLAG_B_FRAME
@ VIDEO_FLAG_B_FRAME
Definition: packet_i.h:142
agora::rtc::IVideoListener::onRemoteVideoInterrupted
virtual void onRemoteVideoInterrupted(unsigned int uid, unsigned int elapse_time)=0
agora::rtc::IVideoListener::PISE_FRAME
@ PISE_FRAME
Definition: packet_i.h:459
agora::rtc::IVideoListener
Definition: packet_i.h:260
agora::rtc::IVideoListener::B_FRAME
@ B_FRAME
Definition: packet_i.h:458
agora::rtc::video_report_packet_t::payload
std::string payload
Definition: packet_i.h:248
agora::rtc::video_packet_t::VIDEO_CODEC_VP8
@ VIDEO_CODEC_VP8
Definition: packet_i.h:155
agora::rtc::uid_t
unsigned int uid_t
Definition: AgoraMediaBase.h:25
agora::rtc::video_packet_t::codec
uint8_t codec
Definition: packet_i.h:184
agora::rtc::MASTER_VIDEO_STREAM
@ MASTER_VIDEO_STREAM
Definition: packet_i.h:252
agora::rtc::video_rtcp_packet_t::payload
std::string payload
Definition: packet_i.h:236
agora::rtc::IVideoListener::VIDEO_FEEDBACK_DECODE_FB
@ VIDEO_FEEDBACK_DECODE_FB
Definition: packet_i.h:472
agora::rtc::IVideoListener::VideoFrameType
VideoFrameType
Definition: packet_i.h:455
agora::rtc::SAudioFrame::audio_fec_level_
uint8_t audio_fec_level_
Definition: packet_i.h:53
agora::rtc::rtc_packet_t::RTC_FLAG_REXFERRED
@ RTC_FLAG_REXFERRED
Definition: packet_i.h:85
agora::rtc::IVideoListener::~IVideoListener
virtual ~IVideoListener()
Definition: packet_i.h:262
agora::rtc::IVideoListener::AutFeedbackData::bwe
uint16_t bwe
Definition: packet_i.h:501
agora::rtc::IVideoListener::switchVideoStream
virtual void switchVideoStream(unsigned int uid, VideoStreamType stream)=0
agora::rtc::IVideoListener::VIDEO_CODEC_VP8
@ VIDEO_CODEC_VP8
Definition: packet_i.h:463
agora::rtc::video_packet_t::VIDEO_STREAM_LIVE
@ VIDEO_STREAM_LIVE
Definition: packet_i.h:131
agora::rtc::video_packet_t::DELTA_FRAME
@ DELTA_FRAME
Definition: packet_i.h:149
agora::rtc::rtc_packet_t::VIDEO_FLAG_CACHED
@ VIDEO_FLAG_CACHED
Definition: packet_i.h:90
agora::rtc::IVideoListener::onStartCaptureSuccess
virtual void onStartCaptureSuccess()=0
agora::rtc::video_packet_t::flags
uint8_t flags
Definition: packet_i.h:185
agora::rtc::IVideoListener::RemoteVideoStat::recvPkgNumber
int recvPkgNumber
Definition: packet_i.h:377
agora::rtc::IVideoListener::PacketInfo::version
int version
Definition: packet_i.h:490
agora::rtc::video_packet_t::VIDEO_FRAME_TYPE
VIDEO_FRAME_TYPE
Definition: packet_i.h:147
agora::rtc::IVideoListener::OnVideoStreamBitrateRangeChanged
virtual void OnVideoStreamBitrateRangeChanged(VideoStreamType type, uint32_t max_kbps, uint32_t min_kbps)=0
agora::rtc::SMediaFrame::seq_
uint16_t seq_
Definition: packet_i.h:39
agora::rtc::IVideoListener::RemoteVideoStat::rendererRecvFrames
int rendererRecvFrames
Definition: packet_i.h:385
agora::rtc::IVideoListener::LocalVideoStat::sentRtt
int sentRtt
Definition: packet_i.h:294
agora::rtc::video_packet_t::VIDEO_FLAG_STD_CODEC
@ VIDEO_FLAG_STD_CODEC
Definition: packet_i.h:141
agora::rtc::IVideoListener::AutFeedbackData
Definition: packet_i.h:498
agora::rtc::video_packet_t::VIDEO_EXTRA_FLAG_TYPE
VIDEO_EXTRA_FLAG_TYPE
Definition: packet_i.h:161
agora::rtc::video_packet_t::reserve1
uint32_t reserve1
Definition: packet_i.h:188
agora::rtc::IVideoListener::PacketInfo::stream_type
VideoStreamType stream_type
Definition: packet_i.h:488
rtc
Definition: video_node_i.h:27
agora::rtc::SharedSAudioFrame
std::shared_ptr< SAudioFrame > SharedSAudioFrame
Definition: packet_i.h:57
agora::rtc::IVideoListener::RemoteVideoStat::minFrameNumber
unsigned int minFrameNumber
Definition: packet_i.h:391
agora::rtc::IVideoListener::RemoteVideoStat::streamType
int streamType
Definition: packet_i.h:383
agora::rtc::rtc_packet_t::VIDEO_FLAG_VIDEO3
@ VIDEO_FLAG_VIDEO3
Definition: packet_i.h:91
agora::rtc::IVideoListener::LocalVideoStat::lowStream
LocalVideoStreamStat lowStream
Definition: packet_i.h:293
agora::rtc::rtc_packet_t::INTERNAL_FLAG_TYPE
INTERNAL_FLAG_TYPE
Definition: packet_i.h:84
agora::rtc::IVideoListener::onSendVideoPaced
virtual void onSendVideoPaced(bool status)=0
agora::rtc::IVideoListener::LocalVideoStat::minEncodeTimeMs
unsigned int minEncodeTimeMs
Definition: packet_i.h:300
agora::rtc::IVideoListener::AutFeedbackData::allocated
uint16_t allocated
Definition: packet_i.h:506
agora::rtc::IVideoListener::LocalVideoStat::reset
void reset()
Definition: packet_i.h:339