addIncludedShareWindow method

  1. @override
void addIncludedShareWindow(
  1. int windowId
)
override

Add specified windows to the inclusion list of screen sharing (for desktop systems only)

This API takes effect only if the type in TRTCScreenCaptureSourceInfo is specified as TRTCScreenCaptureSourceTypeWindow; that is, the feature of additionally including specified windows works only when a window is shared. You can call it before or after startScreenCapture.

Parameters:

  • windowID(int):
    • Window to be shared (which is a window handle HWND on Windows).

Note: The windows added to the inclusion list by this method will be automatically cleared by the SDK after room exit.

Implementation

@override
void addIncludedShareWindow(int windowId) {
  TRTCLog(_tag, "addIncludedShareWindow: windowId: $windowId");
  if (Platform.isAndroid || Platform.isIOS) {
    debugPrint("trtc-api not support");
    return;
  }
  TRTCCloudNative.instance.addIncludedShareWindow(windowId);
}