trtc-electron-sdk 9.5.113-beta.2 → 9.6.8-alpha.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 +22 -1
- package/liteav/trtc.js +28 -3
- package/package.json +1 -1
package/liteav/trtc.d.ts
CHANGED
|
@@ -845,7 +845,6 @@ declare class TRTCCloud extends EventEmitter {
|
|
|
845
845
|
* @param {Boolean} mute - true:屏蔽;false:开启,默认值:false
|
|
846
846
|
*/
|
|
847
847
|
muteLocalVideo(mute: boolean): void;
|
|
848
|
-
setVideoMuteImage(image: ArrayBuffer, width: number, height: number, fps: number): void;
|
|
849
848
|
/**
|
|
850
849
|
* 3.4 开始显示远端视频画面
|
|
851
850
|
*
|
|
@@ -1517,6 +1516,28 @@ declare class TRTCCloud extends EventEmitter {
|
|
|
1517
1516
|
* @note 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeScreen 时生效,即分享屏幕时生效
|
|
1518
1517
|
*/
|
|
1519
1518
|
removeAllExcludedShareWindow(): void;
|
|
1519
|
+
/**
|
|
1520
|
+
* 8.16 将指定窗口加入屏幕分享的包含列表中(该接口仅支持桌面系统)
|
|
1521
|
+
*
|
|
1522
|
+
* @param {String} win - 希望被分享出去的窗口(Windows 平台下为窗口句柄: HWND)
|
|
1523
|
+
* - 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
|
|
1524
|
+
* - 您在 startScreenCapture 之前和之后调用均可。
|
|
1525
|
+
* - 通过该方法添加到包含列表中的窗口,会在退出房间后被 SDK 自动清除。
|
|
1526
|
+
*/
|
|
1527
|
+
addIncludedShareWindow(win: string): void;
|
|
1528
|
+
/**
|
|
1529
|
+
* 8.17 将指定窗口从屏幕分享的包含列表中移除(该接口仅支持桌面系统)
|
|
1530
|
+
*
|
|
1531
|
+
* @param {String} win - 希望被分享出去的窗口(Mac 平台: 窗口 ID;Windows 平台: HWND)
|
|
1532
|
+
* - 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
|
|
1533
|
+
*/
|
|
1534
|
+
removeIncludedShareWindow(win: string): void;
|
|
1535
|
+
/**
|
|
1536
|
+
* 8.18 将全部窗口从屏幕分享的包含列表中移除(该接口仅支持桌面系统)
|
|
1537
|
+
*
|
|
1538
|
+
* @note 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
|
|
1539
|
+
*/
|
|
1540
|
+
removeAllIncludedShareWindow(): void;
|
|
1520
1541
|
/**
|
|
1521
1542
|
* @private
|
|
1522
1543
|
* 9.5 设置本地视频自定义渲染(Electron 平台下不可用)
|
package/liteav/trtc.js
CHANGED
|
@@ -1454,9 +1454,6 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
1454
1454
|
muteLocalVideo(mute) {
|
|
1455
1455
|
this.rtcCloud.muteLocalVideo(mute);
|
|
1456
1456
|
}
|
|
1457
|
-
setVideoMuteImage(image, width, height, fps) {
|
|
1458
|
-
this.rtcCloud.setVideoMuteImage(image, width, height, fps);
|
|
1459
|
-
}
|
|
1460
1457
|
/**
|
|
1461
1458
|
* 3.4 开始显示远端视频画面
|
|
1462
1459
|
*
|
|
@@ -2431,6 +2428,34 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
2431
2428
|
removeAllExcludedShareWindow() {
|
|
2432
2429
|
this.rtcCloud.removeAllExcludedShareWindow();
|
|
2433
2430
|
}
|
|
2431
|
+
/**
|
|
2432
|
+
* 8.16 将指定窗口加入屏幕分享的包含列表中(该接口仅支持桌面系统)
|
|
2433
|
+
*
|
|
2434
|
+
* @param {String} win - 希望被分享出去的窗口(Windows 平台下为窗口句柄: HWND)
|
|
2435
|
+
* - 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
|
|
2436
|
+
* - 您在 startScreenCapture 之前和之后调用均可。
|
|
2437
|
+
* - 通过该方法添加到包含列表中的窗口,会在退出房间后被 SDK 自动清除。
|
|
2438
|
+
*/
|
|
2439
|
+
addIncludedShareWindow(win) {
|
|
2440
|
+
this.rtcCloud.addIncludedShareWindow(win);
|
|
2441
|
+
}
|
|
2442
|
+
/**
|
|
2443
|
+
* 8.17 将指定窗口从屏幕分享的包含列表中移除(该接口仅支持桌面系统)
|
|
2444
|
+
*
|
|
2445
|
+
* @param {String} win - 希望被分享出去的窗口(Mac 平台: 窗口 ID;Windows 平台: HWND)
|
|
2446
|
+
* - 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
|
|
2447
|
+
*/
|
|
2448
|
+
removeIncludedShareWindow(win) {
|
|
2449
|
+
this.rtcCloud.removeIncludedShareWindow(win);
|
|
2450
|
+
}
|
|
2451
|
+
/**
|
|
2452
|
+
* 8.18 将全部窗口从屏幕分享的包含列表中移除(该接口仅支持桌面系统)
|
|
2453
|
+
*
|
|
2454
|
+
* @note 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeWindow 时生效,即分享窗口内容时,额外包含指定窗口的功能才生效。
|
|
2455
|
+
*/
|
|
2456
|
+
removeAllIncludedShareWindow() {
|
|
2457
|
+
this.rtcCloud.removeAllIncludedShareWindow();
|
|
2458
|
+
}
|
|
2434
2459
|
/////////////////////////////////////////////////////////////////////////////////
|
|
2435
2460
|
//
|
|
2436
2461
|
// (九)自定义采集和渲染
|