TRTCImageBuffer

TRTCImageBuffer

Image Buffer

Constructor

new TRTCImageBuffer(buffer, length, width, heigth)

When users share the screen, they can choose to share the entire desktop or only the window of a certain program. TRTCScreenCaptureSourceInfo is used to describe the information of the target to be shared, including ID, name, and thumbnail. The fields in this structure are read-only.

Parameters:
Name Type Description
buffer ArrayBuffer required

image content in BGRA format

length Number required

buffer size

width Number required

image width

heigth Number required

image height