trtc-electron-sdk 12.7.706-beta.2 → 12.7.706
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.
|
@@ -436,6 +436,7 @@ class TRTCMediaMixingManager {
|
|
|
436
436
|
* mediaMixingManager.bindPreviewArea(windowID, rect);
|
|
437
437
|
*/
|
|
438
438
|
bindPreviewArea(windowID, viewOrRegion) {
|
|
439
|
+
var _a, _b;
|
|
439
440
|
logger_1.default.log(`${this.logPrefix}bindPreviewArea:`, windowID, viewOrRegion);
|
|
440
441
|
let realWindowID = 0;
|
|
441
442
|
if (windowID instanceof Uint8Array) {
|
|
@@ -467,6 +468,11 @@ class TRTCMediaMixingManager {
|
|
|
467
468
|
this.destroyDesigner();
|
|
468
469
|
this.nodeMediaMixingPlugin.setDisplayParams(realWindowID, viewOrRegion);
|
|
469
470
|
}
|
|
471
|
+
if (!((_a = this.paramsStore) === null || _a === void 0 ? void 0 : _a.streamLayout)) {
|
|
472
|
+
this.setStreamLayout({
|
|
473
|
+
layoutMode: types_1.TRTCStreamLayoutMode.None,
|
|
474
|
+
});
|
|
475
|
+
}
|
|
470
476
|
}
|
|
471
477
|
else {
|
|
472
478
|
this.destroyResizeObserver();
|
|
@@ -474,6 +480,9 @@ class TRTCMediaMixingManager {
|
|
|
474
480
|
this.destroyDesigner();
|
|
475
481
|
this.view = null;
|
|
476
482
|
this.nodeMediaMixingPlugin.setDisplayParams(realWindowID, { left: 0, right: 0, top: 0, bottom: 0 });
|
|
483
|
+
if ((_b = this.paramsStore) === null || _b === void 0 ? void 0 : _b.streamLayout) {
|
|
484
|
+
this.paramsStore.streamLayout = null;
|
|
485
|
+
}
|
|
477
486
|
}
|
|
478
487
|
}
|
|
479
488
|
/**
|
|
@@ -831,7 +840,7 @@ class TRTCMediaMixingManager {
|
|
|
831
840
|
}
|
|
832
841
|
else {
|
|
833
842
|
const { resourcesPath, execPath } = globalThis.process;
|
|
834
|
-
if (execPath.endsWith('electron.exe')) {
|
|
843
|
+
if (execPath.endsWith('\\electron.exe')) {
|
|
835
844
|
serverPath = 'node_modules\\trtc-electron-sdk\\build\\Release\\liteav_media_server.exe';
|
|
836
845
|
}
|
|
837
846
|
else {
|