io.agora.rtc

## Class DefaultMediaPacketReceiver

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

- All Implemented Interfaces:
    IMediaPacketReceiver

      public class DefaultMediaPacketReceiver
      extends java.lang.Object
      implements IMediaPacketReceiver

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultMediaPacketReceiver()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `onMediaPacketReceived(AgoraMediaPacketReceiver agora_media_packet_receiver, byte[] packet, int length, PacketOptions options)`

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

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

- - ### Constructor Detail

    - #### DefaultMediaPacketReceiver

          public DefaultMediaPacketReceiver()

  - ### Method Detail

    - #### onMediaPacketReceived

          public int onMediaPacketReceived(AgoraMediaPacketReceiver agora_media_packet_receiver,
                                           byte[] packet,
                                           int length,
                                           PacketOptions options)

      Specified by:
        `onMediaPacketReceived` in interface `IMediaPacketReceiver`