Agora C++ API Reference for All Platforms

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

## Public Member Functions
virtual bool | onMediaControlPacketReceived (uid_t uid, const uint8_t *packet, size_t length)=0
virtual | ~IMediaControlPacketReceiver ()

## Detailed Description

The IMediaControlPacketReceiver class.

You can register a receiver in audio or video tracks to trigger callbacks when RTCP/UDP packets are received.

## Constructor & Destructor Documentation

## ◆ ~IMediaControlPacketReceiver()

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

## Member Function Documentation

## ◆ onMediaControlPacketReceived()

virtual bool agora::rtc::IMediaControlPacketReceiver::onMediaControlPacketReceived | ( | uid_t | uid,
|  | const uint8_t * | packet,
|  | size_t | length
| ) |  |
| pure virtual

Occurs when the track receives media control packet.

Parameters

  packet | The pointer to the media packet.
  length | The length of the packet.