Agora Java API Reference for Android

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

`#include <NGIAgoraMediaNode.h>`

## 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.

## 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.