trtc-sdk-v5 5.0.0-beta.2 → 5.0.1

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/README.md CHANGED
@@ -14,7 +14,7 @@ An object-oriented WebRTC SDK library
14
14
 
15
15
  </div>
16
16
 
17
- English | [简体中文](https://github.com/LiteAVSDK/TRTC_Web/blob/main/SDK/README-zh_CN.md)
17
+ English | [简体中文](https://github.com/LiteAVSDK/TRTC_Web/blob/main/v5/SDK/README-zh_CN.md)
18
18
 
19
19
  ## Introduction
20
20
 
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference path="./core.d.ts" />
2
2
 
3
3
  declare interface LocalVideoConfig {
4
- view: string | HTMLElement | null;
4
+ view: string | HTMLElement | HTMLElement[] | null;
5
5
  publish?: boolean;
6
6
  option?: {
7
7
  cameraId?: string;
@@ -62,7 +62,7 @@
62
62
  };
63
63
  }
64
64
  declare interface RemoteVideoConfig {
65
- view: string | HTMLElement | null;
65
+ view: string | HTMLElement | HTMLElement[] | null;
66
66
  userId: string;
67
67
  streamType: TRTCStreamType;
68
68
  option?: {
@@ -738,7 +738,8 @@
738
738
  * @param {string=} options.userDefineRecordId 用于设置云端录制的 userDefineRecordId(选填)。
739
739
  * - 【推荐取值】限制长度为64字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线和连词符。
740
740
  * - 【参考文档】[云端录制](https://cloud.tencent.com/document/product/647/16823)。
741
- * @param {string|ProxyServer} [options.proxy] 设置代理服务器
741
+ * @param {string|ProxyServer} [options.proxy] 设置代理服务器。参考最佳实践:{@tutorial 34-advanced-proxy}。
742
+ * @param {boolean} [options.privateMapKey] 进房钥匙,若需要权限控制请携带该参数(传空或传错会导致进房失败)。<br>[privateMapKey 权限设置](https://cloud.tencent.com/document/product/647/32240)
742
743
  * @throws
743
744
  * - {@link module:ERROR_CODE.INVALID_PARAMETER INVALID_PARAMETER}
744
745
  * - {@link module:ERROR_CODE.OPERATION_FAILED OPERATION_FAILED}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.0.0-beta.2",
3
+ "version": "5.0.1",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "main": "trtc.js",
6
6
  "module": "trtc.esm.js",
@@ -9,6 +9,9 @@
9
9
  "webrtc",
10
10
  "TRTC",
11
11
  "rtc",
12
+ "call",
13
+ "video call",
14
+ "audio call",
12
15
  "javascript",
13
16
  "video",
14
17
  "audio",