Agora Server Gateway SDK Java API Reference
|
Public Member Functions | |
AgoraVideoEncodedImageSender (long cptr) | |
native int | send (byte[] image_buffer, int length, EncodedVideoFrameInfo info) |
void | destroy () |
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.
io.agora.rtc.AgoraVideoEncodedImageSender.AgoraVideoEncodedImageSender | ( | long | cptr | ) |
Constructor.
void io.agora.rtc.AgoraVideoEncodedImageSender.destroy | ( | ) |
Destructor.
native int io.agora.rtc.AgoraVideoEncodedImageSender.send | ( | byte[] | image_buffer, |
int | length, | ||
EncodedVideoFrameInfo | info | ||
) |
Sends the encoded video image to the video track.
image_buffer | The video buffer. |
length | The data length of the video data. |
info | The information of the encoded video frame。 |
true
: Success.false
: Failure.