addIncludedShareWindow method
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
HWNDon Windows).
- Window to be shared (which is a window handle
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);
}