trtc-sdk-v5 5.3.0-beta.1 → 5.3.0-beta.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/index.d.ts +5 -5
- package/package.json +1 -1
- package/trtc.esm.js +19 -19
- package/trtc.js +1 -1
package/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
profile?: keyof typeof videoProfileMap | VideoProfile;
|
|
15
15
|
fillMode?: 'contain' | 'cover' | 'fill';
|
|
16
16
|
mirror?: boolean;
|
|
17
|
-
small?: keyof typeof videoProfileMap | VideoProfile;
|
|
17
|
+
small?: keyof typeof videoProfileMap | VideoProfile | boolean;
|
|
18
18
|
qosPreference?: typeof TRTCType.QOS_PREFERENCE_SMOOTH | typeof TRTCType.QOS_PREFERENCE_CLEAR;
|
|
19
19
|
videoTrack?: MediaStreamTrack;
|
|
20
20
|
};
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
* @example
|
|
411
411
|
*
|
|
412
412
|
* trtc.on(TRTC.EVENT.ERROR, error => {
|
|
413
|
-
* console.error('
|
|
413
|
+
* console.error('client error observed: ' + error);
|
|
414
414
|
* const errorCode = error.code;
|
|
415
415
|
* const extraCode = error.extraCode;
|
|
416
416
|
* });
|
|
@@ -531,7 +531,7 @@
|
|
|
531
531
|
readonly REMOTE_VIDEO_UNAVAILABLE: "remote-video-unavailable";
|
|
532
532
|
/**
|
|
533
533
|
* @description 音量大小事件<br>
|
|
534
|
-
* 调用 {@link
|
|
534
|
+
* 调用 {@link Client#enableAudioVolumeEvaluation enableAudioVolumeEvaluation} 接口开启音量大小回调后,SDK 会定时抛出该事件,通知每个 userId 的音量大小。<br>
|
|
535
535
|
* **Note**
|
|
536
536
|
* - 回调中包含本地麦克风音量及远端用户的音量,无论是否有人说话,都会触发该回调。
|
|
537
537
|
* - 回调 event.result 会根据音量大小,按大到小进行排序。
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
* 其枚举值及含义如下表所示:
|
|
564
564
|
* | 数值 | 含义 |
|
|
565
565
|
* | :--- | :---- |
|
|
566
|
-
* | 0 | 网络状况未知,表示当前
|
|
566
|
+
* | 0 | 网络状况未知,表示当前 client 实例还没有建立上行/下行连接 |
|
|
567
567
|
* | 1 | 网络状况极佳 |
|
|
568
568
|
* | 2 | 网络状况较好|
|
|
569
569
|
* | 3 | 网络状况一般 |
|
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
* @default 'connection-state-changed'
|
|
605
605
|
* @memberof module:EVENT
|
|
606
606
|
* @example
|
|
607
|
-
*
|
|
607
|
+
* client.on(TRTC.CONNECTION_STATE_CHANGED, event => {
|
|
608
608
|
* const prevState = event.prevState;
|
|
609
609
|
* const curState = event.state;
|
|
610
610
|
* });
|