Server Gateway SDK v3.7.200.21 for Linux Java
Public Member Functions | List of all members
io.agora.rtc.AgoraVideoEncodedImageSender Class Reference

Public Member Functions

 AgoraVideoEncodedImageSender (long cptr)
native int send (byte[] image_buffer, int length, EncodedVideoFrameInfo info)
void destroy ()

Detailed Description

The AgoraVideoEncodedImageSender class.

In scenarios involving custom video sources, you can use this class to send the encoded video data directly to the video track. If the video track is disabled, the sent video image will be automatically discarded.

Constructor & Destructor Documentation

◆ AgoraVideoEncodedImageSender()

io.agora.rtc.AgoraVideoEncodedImageSender.AgoraVideoEncodedImageSender ( long  cptr)


Member Function Documentation

◆ destroy()

void io.agora.rtc.AgoraVideoEncodedImageSender.destroy ( )


◆ send()

native int io.agora.rtc.AgoraVideoEncodedImageSender.send ( byte[]  image_buffer,
int  length,
EncodedVideoFrameInfo  info 

Sends the encoded video image to the video track.

image_bufferThe video buffer.
lengthThe data length of the video data.
infoThe information of the encoded video frame。
  • true: Success.
  • false: Failure.

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