@tencentcloud/tuiroom-engine-js 1.5.1 → 1.6.1-beta.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencentcloud/tuiroom-engine-js",
3
- "version": "1.5.1",
3
+ "version": "1.6.1-beta.0",
4
4
  "description": "TUIRoomEngine Web SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -19,8 +19,7 @@
19
19
  "license": "ISC",
20
20
  "dependencies": {
21
21
  "rtc-detect": "^0.0.5",
22
- "tim-js-sdk": "^2.27.0",
23
- "trtc-cloud-js-sdk": "^2.2.1",
24
- "tsignaling": "^1.0.7"
22
+ "@tencentcloud/chat": "^3.2.0",
23
+ "trtc-cloud-js-sdk": "^2.2.2"
25
24
  }
26
25
  }
package/types.d.ts CHANGED
@@ -2,6 +2,7 @@ export declare enum TUIErrorCode {
2
2
  ERR_SUCC = 0,
3
3
  ERR_FAILED = -1,
4
4
  ERR_FREQ_LIMIT = -2,
5
+ ERR_REPEAT_OPERATION = -3,
5
6
  ERR_SDKAPPID_NOT_FOUND = -1000,
6
7
  ERR_INVALID_PARAMETER = -1001,
7
8
  ERR_SDK_NOT_INITIALIZED = -1002,
@@ -139,11 +140,13 @@ export type TUINetwork = {
139
140
  * @typedef {object} TUIVideoEncoderParams
140
141
  * @property {number} fps 帧率设置
141
142
  * @property {number} bitrate 目标编码码率设置
142
- * @property {TUIVideoQuality} quality 上视频分辨率
143
+ * @property {TUIVideoQuality} quality 上行视频分辨率
144
+ * @property {TUIVideoQuality} videoResolution 上行视频分辨率(自 v1.6.0 版本开始支持,v1.6.0 之前版本请使用 quality 参数)
143
145
  * @property {TUIResolutionMode} resolutionMode 横竖屏模式
144
146
  */
145
147
  export type TUIVideoEncoderParams = {
146
- quality: TUIVideoQuality;
148
+ quality?: TUIVideoQuality;
149
+ videoResolution: TUIVideoQuality;
147
150
  fps: number;
148
151
  bitrate: number;
149
152
  resolutionMode: TUIResolutionMode;