@tencentcloud/trtc-cloud-wx 1.0.2-beta.0 → 1.0.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/package.json +1 -1
- package/trtc-cloud-wx.js +18 -15
package/package.json
CHANGED
package/trtc-cloud-wx.js
CHANGED
|
@@ -479,19 +479,19 @@ function _toPropertyKey(arg) {
|
|
|
479
479
|
return typeof key === "symbol" ? key : String(key);
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
-
/******************************************************************************
|
|
483
|
-
Copyright (c) Microsoft Corporation.
|
|
484
|
-
|
|
485
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
486
|
-
purpose with or without fee is hereby granted.
|
|
487
|
-
|
|
488
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
489
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
490
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
491
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
492
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
493
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
494
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
482
|
+
/******************************************************************************
|
|
483
|
+
Copyright (c) Microsoft Corporation.
|
|
484
|
+
|
|
485
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
486
|
+
purpose with or without fee is hereby granted.
|
|
487
|
+
|
|
488
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
489
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
490
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
491
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
492
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
493
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
494
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
495
495
|
***************************************************************************** */
|
|
496
496
|
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
497
497
|
|
|
@@ -1501,6 +1501,7 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
1501
1501
|
this.isOpenCamera = false;
|
|
1502
1502
|
this.currentSoundMode = exports.TRTCAudioRoute.TRTC_AUDIO_ROUTE_SPEAKER;
|
|
1503
1503
|
this.audioVolumeEvaluation = 0;
|
|
1504
|
+
this.encsmall = 0;
|
|
1504
1505
|
this.allTimer = {};
|
|
1505
1506
|
this.renderMap = new Map();
|
|
1506
1507
|
this.logger = logger;
|
|
@@ -1815,7 +1816,8 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
1815
1816
|
scene: translateTRTCAppScene(scene),
|
|
1816
1817
|
enableMic: false,
|
|
1817
1818
|
enableCamera: false,
|
|
1818
|
-
videoPreview: false
|
|
1819
|
+
videoPreview: false,
|
|
1820
|
+
encsmall: this.encsmall
|
|
1819
1821
|
}
|
|
1820
1822
|
}, 'enterRoom');
|
|
1821
1823
|
case 12:
|
|
@@ -2833,7 +2835,8 @@ var TRTCCloud = /*#__PURE__*/function () {
|
|
|
2833
2835
|
}, {
|
|
2834
2836
|
key: "enableSmallVideoStream",
|
|
2835
2837
|
value: function enableSmallVideoStream(enable, params) {
|
|
2836
|
-
|
|
2838
|
+
logger.info('enableSmallVideoStream with options: ', enable, JSON.stringify(params));
|
|
2839
|
+
this.encsmall = enable ? 1 : 0;
|
|
2837
2840
|
}
|
|
2838
2841
|
/**
|
|
2839
2842
|
* 调用实验性 API 接口
|