Agora C++ API Reference for All Platforms

Public Member Functions | List of all members
agora::rtc::ITransportPacketObserver Class Referenceabstract

## Public Member Functions
virtual | ~ITransportPacketObserver ()
virtual int | onAudioPacket (const agora::rtc::TConnectionInfo &connectionInfo, const audio_packet_t &p)=0
virtual int | onVideoPacket (const agora::rtc::TConnectionInfo &connectionInfo, const video_packet_t &p)=0
virtual int | onControlBroadcastPacket (const agora::rtc::TConnectionInfo &connectionInfo, control_broadcast_packet_t &p)=0
virtual int | onDataStreamPacket (const agora::rtc::TConnectionInfo &connectionInfo, agora::rtc::uid_t uid, uint16_t streamId, const char *data, size_t length)=0

## Constructor & Destructor Documentation

## ◆ ~ITransportPacketObserver()

virtual agora::rtc::ITransportPacketObserver::~ITransportPacketObserver | ( |  | ) |
| inline virtual

## Member Function Documentation

## ◆ onAudioPacket()

virtual int agora::rtc::ITransportPacketObserver::onAudioPacket | ( | const agora::rtc::TConnectionInfo & | connectionInfo,
|  | const audio_packet_t & | p
| ) |  |
| pure virtual

## ◆ onVideoPacket()

virtual int agora::rtc::ITransportPacketObserver::onVideoPacket | ( | const agora::rtc::TConnectionInfo & | connectionInfo,
|  | const video_packet_t & | p
| ) |  |
| pure virtual

## ◆ onControlBroadcastPacket()

virtual int agora::rtc::ITransportPacketObserver::onControlBroadcastPacket | ( | const agora::rtc::TConnectionInfo & | connectionInfo,
|  | control_broadcast_packet_t & | p
| ) |  |
| pure virtual

## ◆ onDataStreamPacket()

virtual int agora::rtc::ITransportPacketObserver::onDataStreamPacket | ( | const agora::rtc::TConnectionInfo & | connectionInfo,
|  | agora::rtc::uid_t | uid,
|  | uint16_t | streamId,
|  | const char * | data,
|  | size_t | length
| ) |  |
| pure virtual