trtc-sdk-v5 5.11.0-beta.1 → 5.11.0-beta.3
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 +7 -4
- package/package.json +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/cross-room/package.json +1 -1
- package/plugins/custom-encryption/package.json +1 -1
- package/plugins/device-detector/package.json +1 -1
- package/plugins/small-stream-auto-switcher/package.json +1 -1
- package/plugins/small-stream-auto-switcher/small-stream-auto-switcher.esm.js +1 -1
- package/plugins/small-stream-auto-switcher/small-stream-auto-switcher.umd.js +1 -1
- package/plugins/video-decoder/package.json +1 -1
- package/plugins/video-effect/basic-beauty/basic-beauty.esm.js +1 -1
- package/plugins/video-effect/basic-beauty/basic-beauty.umd.js +1 -1
- package/plugins/video-effect/basic-beauty/package.json +1 -1
- package/plugins/video-effect/beauty/package.json +1 -1
- package/plugins/video-effect/video-mixer/package.json +1 -1
- package/plugins/video-effect/virtual-background/package.json +1 -1
- package/plugins/video-effect/virtual-background/virtual-background.esm.js +1 -1
- package/plugins/video-effect/virtual-background/virtual-background.umd.js +1 -1
- package/plugins/video-effect/watermark/package.json +1 -1
- package/plugins/voice-changer/package.json +1 -1
- package/trtc.esm.js +29 -29
- package/trtc.js +1 -1
package/index.d.ts
CHANGED
|
@@ -385,7 +385,7 @@ export declare interface SwitchRoomConfig {
|
|
|
385
385
|
roomId?: number,
|
|
386
386
|
strRoomId?: string;
|
|
387
387
|
privateMapKey?: string;
|
|
388
|
-
userSig
|
|
388
|
+
userSig: string;
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
export declare interface ScreenShareConfig {
|
|
@@ -1405,6 +1405,8 @@ export declare class TRTC {
|
|
|
1405
1405
|
* - [Contact us](https://trtc.io/contact) to enable this API.
|
|
1406
1406
|
*
|
|
1407
1407
|
* @param {object} options Switch room parameters
|
|
1408
|
+
* @param {string} options.userSig UserSig signature <br>
|
|
1409
|
+
* Please refer to [UserSig related](https://trtc.io/document/35166) for the calculation method of userSig.
|
|
1408
1410
|
* @param {number=} options.roomId
|
|
1409
1411
|
* the value must be an integer between 1 and 4294967294<br>
|
|
1410
1412
|
* <font color="red">Note: <br>1. The room to be switched and the current room must be of the same room type (both digital rooms or string rooms)<br> 2. Either roomId or strRoomId must be filled in. If both are filled in, roomId is preferred. </font>
|
|
@@ -1413,8 +1415,6 @@ export declare class TRTC {
|
|
|
1413
1415
|
* - Uppercase and lowercase English letters (a-zA-Z)
|
|
1414
1416
|
* - Numbers (0-9)
|
|
1415
1417
|
* - Space ! # $ % & ( ) + - : ; < = . > ? @ [ ] ^ _ { } | ~ ,
|
|
1416
|
-
* @param {string} options.userSig UserSig signature <br>
|
|
1417
|
-
* Please refer to [UserSig related](https://trtc.io/document/35166) for the calculation method of userSig.
|
|
1418
1418
|
* <font color="red">Note: If you omit this parameter, SDK will reuse the userSig passed in {@link TRTC#enterRoom enterRoom()}. If it has expired, switching room will fail.</font>
|
|
1419
1419
|
* @param {boolean=} [options.privateMapKey] Key for entering a room. If permission control is required, please carry this parameter (empty or incorrect value will cause a failure in entering the room).<br>[privateMapKey permission configuration](https://www.tencentcloud.com/document/product/647/35157?lang=en&pg=).
|
|
1420
1420
|
* @throws
|
|
@@ -1430,7 +1430,10 @@ export declare class TRTC {
|
|
|
1430
1430
|
* scene: TRTC.TYPE.SCENE_LIVE,
|
|
1431
1431
|
* role: TRTC.TYPE.ROLE_AUDIENCE
|
|
1432
1432
|
* });
|
|
1433
|
-
* await trtc.switchRoom({
|
|
1433
|
+
* await trtc.switchRoom({
|
|
1434
|
+
* userSig,
|
|
1435
|
+
* roomId: 9999
|
|
1436
|
+
* });
|
|
1434
1437
|
*/
|
|
1435
1438
|
switchRoom(params: SwitchRoomConfig): Promise<void>;
|
|
1436
1439
|
/**
|
package/package.json
CHANGED