trtc-electron-sdk 9.8.8-beta.2 → 9.8.8-beta.3
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.js +8 -0
- package/package.json +1 -1
package/liteav/trtc.js
CHANGED
|
@@ -2468,6 +2468,10 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
2468
2468
|
* - Windows下该方法添加的窗口列表会在退房后清空;Mac下在退出房间时不会自动清空,需要调用一次removeAllExcludedShareWindow()方法清空列表。
|
|
2469
2469
|
*/
|
|
2470
2470
|
addExcludedShareWindow(win) {
|
|
2471
|
+
if (isNaN(+win)) {
|
|
2472
|
+
console.error('addExcludedShareWindow, win: ' + win + 'is not invalid!');
|
|
2473
|
+
return;
|
|
2474
|
+
}
|
|
2471
2475
|
this.rtcCloud.addExcludedShareWindow(win);
|
|
2472
2476
|
}
|
|
2473
2477
|
/**
|
|
@@ -2477,6 +2481,10 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
2477
2481
|
* - 该方法只有在 TRTCScreenCaptureSourceInfo 中的 type 指定为 TRTCScreenCaptureSourceTypeScreen 时生效,即分享屏幕时生效
|
|
2478
2482
|
*/
|
|
2479
2483
|
removeExcludedShareWindow(win) {
|
|
2484
|
+
if (isNaN(+win)) {
|
|
2485
|
+
console.error('removeExcludedShareWindow, win: ' + win + 'is not invalid!');
|
|
2486
|
+
return;
|
|
2487
|
+
}
|
|
2480
2488
|
this.rtcCloud.removeExcludedShareWindow(win);
|
|
2481
2489
|
}
|
|
2482
2490
|
/**
|