TRTCImageBuffer

TRTCImageBuffer

3.4 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

image content in BGRA format

length Number

buffer size

width Number

image width

heigth Number

image height