io.agora.rtc

## Interface IMediaCtrlPacketReceiver

-     public interface IMediaCtrlPacketReceiver

  Observer interface for media control packet receiver events.

- - ### Method Summary

    All Methods Instance Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default int` | `onMediaCtrlPacketReceived(AgoraMediaCtrlPacketReceiver agora_media_ctrl_packet_receiver, int uid, byte[] packet, int length)` Called when a media control packet is received.

- - ### Method Detail

    - #### onMediaCtrlPacketReceived

          default int onMediaCtrlPacketReceived(AgoraMediaCtrlPacketReceiver agora_media_ctrl_packet_receiver,
                                                int uid,
                                                byte[] packet,
                                                int length)

      Called when a media control packet is received.
      Parameters:
        `agora_media_ctrl_packet_receiver` - The media control packet receiver instance
        `uid` - User ID
        `packet` - Packet data
        `length` - Packet length
      Returns:
        0 on success, non-zero on failure