io.agora.rtc

## Interface IAudioEncodedFrameObserver

-     public interface IAudioEncodedFrameObserver

  Observer interface for encoded audio frames.

- - ### Method Summary

    All Methods Instance Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default int` | `onEncodedAudioFrameReceived(java.lang.String remoteUserId, java.nio.ByteBuffer buffer, EncodedAudioFrameReceiverInfo info)` Note: To improve data transmission efficiency, the buffer of the frame object is a DirectByteBuffer.

- - ### Method Detail

    - #### onEncodedAudioFrameReceived

          default int onEncodedAudioFrameReceived(java.lang.String remoteUserId,
                                                  java.nio.ByteBuffer buffer,
                                                  EncodedAudioFrameReceiverInfo info)

      Note: To improve data transmission efficiency, the buffer of the frame object is a DirectByteBuffer. Be sure to extract the byte array value in the callback synchronously and then transfer it to the asynchronous thread for processing. You can refer to `Utils.getBytes(ByteBuffer)`.
      Parameters:
        `remoteUserId` - the remote user id
        `buffer` - the audio encoded frame buffer
        `info` - the audio encoded frame info
      Returns:
        0/1, the return value currently has no practical significance