io.agora.rtc

## Class AgoraMediaCtrlPacketReceiver

- java.lang.Object
- - io.agora.rtc.AgoraMediaCtrlPacketReceiver

-     public class AgoraMediaCtrlPacketReceiver
      extends java.lang.Object

  Wrapper for receiving media control packets.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private long` | `cptr` Native pointer to the packet receiver instance.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AgoraMediaCtrlPacketReceiver()` Constructs a media control packet receiver.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `destroy()` Destroys the packet receiver and releases native resources.
    `private long` | `init()` Initializes the native packet receiver.
    `private void` | `ndestroy()` Destroys the native packet receiver.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### cptr

          private long cptr

      Native pointer to the packet receiver instance.

  - ### Constructor Detail

    - #### AgoraMediaCtrlPacketReceiver

          public AgoraMediaCtrlPacketReceiver()

      Constructs a media control packet receiver.

  - ### Method Detail

    - #### init

          private long init()

      Initializes the native packet receiver.
      Returns:
        Native pointer to the receiver instance

    - #### ndestroy

          private void ndestroy()

      Destroys the native packet receiver.

    - #### destroy

          public void destroy()

      Destroys the packet receiver and releases native resources.