Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | List of all members
agora::rtc::ITransportPacketObserver Class Referenceabstract

`#include <local_user_i.h>`

## Public Member Functions
virtual | ~ITransportPacketObserver ()
virtual int | onAudioPacket (const agora::rtc::TConnectionInfo &connectionInfo, const audio_packet_t &p, int64_t packet_ssrc)=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 | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ onAudioPacket()

virtual int agora::rtc::ITransportPacketObserver::onAudioPacket | ( | const agora::rtc::TConnectionInfo & | connectionInfo,
|  | const audio_packet_t & | p,
|  | int64_t | packet_ssrc )
| 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