Agora Java API Reference for Android

Public Member Functions | List of all members
io.agora.rtc2.video.IVideoEncodedFrameObserver Interface Reference

## Public Member Functions
boolean | onEncodedVideoFrameReceived (String channelId, int remoteUid, ByteBuffer buffer, EncodedVideoFrameInfo info)
| Reports that the receiver has received the to-be-decoded video frame sent by the remote end. More...

## Detailed Description

The IVideoEncodedFrameObserver interface.

## Member Function Documentation

## ◆ onEncodedVideoFrameReceived()

boolean io.agora.rtc2.video.IVideoEncodedFrameObserver.onEncodedVideoFrameReceived | ( | String | channelId,
|  | int | remoteUid,
|  | ByteBuffer | buffer,
|  | EncodedVideoFrameInfo | info
| ) |  |

Reports that the receiver has received the to-be-decoded video frame sent by the remote end.

If you call the `setRemoteVideoSubscriptionOptions` method and set `encodedFrameOnly` to `true`, the SDK triggers this callback locally to report the received encoded video frame information.

Since
  4.6.0

Parameters

  channelId | The channel name.
  remoteUid | The user id of the remote user.
  buffer | The encoded video image buffer.
  info | For the information of the encoded video frame, see `EncodedVideoFrameInfo`.

Returns
  Without practical meaning.