Agora Server Gateway SDK Java API Reference
Loading...
Searching...
No Matches
io.agora.rtc.IVideoEncodedFrameObserver Interface Reference

Public Member Functions

int onEncodedVideoFrame (AgoraVideoEncodedFrameObserver observer, int userId, ByteBuffer buffer, EncodedVideoFrameInfo info)
 

Detailed Description

The IVideoEncodedFrameObserver interface.

Member Function Documentation

◆ onEncodedVideoFrame()

int io.agora.rtc.IVideoEncodedFrameObserver.onEncodedVideoFrame ( AgoraVideoEncodedFrameObserver observer,
int userId,
ByteBuffer buffer,
EncodedVideoFrameInfo info )

Occurs when the encoded video frame is received.

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.
Parameters
observerAgoraVideoEncodedFrameObserver,
userIdThe remote user ID.the remote user id.
bufferThe encoded audio frame buffer.
infoThe encoded video frame info: EncodedVideoFrameInfo.
Returns
0 or 1. The return value currently has no practical significance.

The documentation for this interface was generated from the following file: