Agora RTC Objective-C API Reference Refactor

Public Member Functions
IMediaControlPacketReceiver Class Referenceabstract

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

## 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 ~IMediaControlPacketReceiver | ( |  | ) |
| inline virtual

## Member Function Documentation

## ◆ onMediaControlPacketReceived()

virtual bool 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.