TRTCScreenCaptureSourceInfo

TRTCScreenCaptureSourceInfo

Screen capturing source information

Constructor

new TRTCScreenCaptureSourceInfo(type, sourceId, sourceName, thumbBGRA, iconBGRA, isMinimizeWindow, width, height, isMainScreen)

Parameters:
Name Type Description
type TRTCScreenCaptureSourceType

capturing source type (i.e., whether to share the entire screen or a certain window)

sourceId String

capturing source ID. For a window, this field indicates a window ID; for a screen, this field indicates a display ID.

sourceName String

capturing source name (encoded in UTF-8)

thumbBGRA TRTCImageBuffer

thumbnail of the shared window

iconBGRA TRTCImageBuffer

icon of the shared window

isMinimizeWindow Boolean

whether is minimized window or not

width Number

screen or window width, Unit: px. Only Microsoft Windows operating system supported.

height Number

screen or window height, Unit: px. Only Microsoft Windows operating system supported.

isMainScreen Boolean

whether is main screen. Only Microsoft Windows operating system supported.