trtc-electron-sdk 11.4.502-beta.1 → 11.4.502-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/liteav/trtc.d.ts CHANGED
@@ -1785,6 +1785,28 @@ declare class TRTCCloud extends EventEmitter {
1785
1785
  * @note 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeScreen 时生效,即分享屏幕时生效
1786
1786
  */
1787
1787
  removeAllExcludedShareWindow(): void;
1788
+ /**
1789
+ * 将指定窗口加入屏幕分享的包含列表中(该接口仅支持桌面系统)
1790
+ *
1791
+ * @param {String} win - 希望被分享出去的窗口(Windows 平台下为窗口句柄: HWND)
1792
+ * - 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
1793
+ * - 您在 startScreenCapture 之前和之后调用均可。
1794
+ * - 通过该方法添加到包含列表中的窗口,会在退出房间后被 SDK 自动清除。
1795
+ */
1796
+ addIncludedShareWindow(win: string): void;
1797
+ /**
1798
+ * 将指定窗口从屏幕分享的包含列表中移除(该接口仅支持桌面系统)
1799
+ *
1800
+ * @param {String} win - 希望被分享出去的窗口(Mac 平台: 窗口 ID;Windows 平台: HWND)
1801
+ * - 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
1802
+ */
1803
+ removeIncludedShareWindow(win: string): void;
1804
+ /**
1805
+ * 将全部窗口从屏幕分享的包含列表中移除(该接口仅支持桌面系统)
1806
+ *
1807
+ * @note 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
1808
+ */
1809
+ removeAllIncludedShareWindow(): void;
1788
1810
  /**
1789
1811
  * 启用音频自定义采集模式
1790
1812
  *
package/liteav/trtc.js CHANGED
@@ -3189,6 +3189,42 @@ class TRTCCloud extends events_1.EventEmitter {
3189
3189
  removeAllExcludedShareWindow() {
3190
3190
  this.rtcCloud.removeAllExcludedShareWindow();
3191
3191
  }
3192
+ /**
3193
+ * 将指定窗口加入屏幕分享的包含列表中(该接口仅支持桌面系统)
3194
+ *
3195
+ * @param {String} win - 希望被分享出去的窗口(Windows 平台下为窗口句柄: HWND)
3196
+ * - 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
3197
+ * - 您在 startScreenCapture 之前和之后调用均可。
3198
+ * - 通过该方法添加到包含列表中的窗口,会在退出房间后被 SDK 自动清除。
3199
+ */
3200
+ addIncludedShareWindow(win) {
3201
+ if (isNaN(+win)) {
3202
+ console.error('trtc:addIncludedShareWindow, win: ' + win + 'is not invalid!');
3203
+ return;
3204
+ }
3205
+ this.rtcCloud.addIncludedShareWindow(win);
3206
+ }
3207
+ /**
3208
+ * 将指定窗口从屏幕分享的包含列表中移除(该接口仅支持桌面系统)
3209
+ *
3210
+ * @param {String} win - 希望被分享出去的窗口(Mac 平台: 窗口 ID;Windows 平台: HWND)
3211
+ * - 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
3212
+ */
3213
+ removeIncludedShareWindow(win) {
3214
+ if (isNaN(+win)) {
3215
+ console.error('trtc:removeIncludedShareWindow, win: ' + win + 'is not invalid!');
3216
+ return;
3217
+ }
3218
+ this.rtcCloud.removeIncludedShareWindow(win);
3219
+ }
3220
+ /**
3221
+ * 将全部窗口从屏幕分享的包含列表中移除(该接口仅支持桌面系统)
3222
+ *
3223
+ * @note 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
3224
+ */
3225
+ removeAllIncludedShareWindow() {
3226
+ this.rtcCloud.removeAllIncludedShareWindow();
3227
+ }
3192
3228
  /////////////////////////////////////////////////////////////////////////////////
3193
3229
  //
3194
3230
  // (九)自定义采集和渲染
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-electron-sdk",
3
- "version": "11.4.502-beta.1",
3
+ "version": "11.4.502-beta.2",
4
4
  "description": "trtc electron sdk",
5
5
  "main": "./liteav/trtc.js",
6
6
  "types": "./liteav/trtc.d.ts",