trtc-sdk-v5 5.10.2-wasm.3 → 5.11.0-beta.10

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.
Files changed (28) hide show
  1. package/assets/audioProcessor-wasm.js +1 -0
  2. package/assets/debug-dialog.js +2 -2
  3. package/assets/face_detection/vision_wasm_internal.js +1 -1
  4. package/assets/face_detection/vision_wasm_nosimd_internal.js +1 -1
  5. package/index.d.ts +12 -5
  6. package/package.json +6 -4
  7. package/plugins/cdn-streaming/package.json +1 -1
  8. package/plugins/cross-room/package.json +1 -1
  9. package/plugins/custom-encryption/package.json +1 -1
  10. package/plugins/device-detector/package.json +1 -1
  11. package/plugins/small-stream-auto-switcher/package.json +1 -1
  12. package/plugins/small-stream-auto-switcher/small-stream-auto-switcher.esm.js +1 -1
  13. package/plugins/small-stream-auto-switcher/small-stream-auto-switcher.umd.js +1 -1
  14. package/plugins/video-decoder/package.json +1 -1
  15. package/plugins/video-effect/basic-beauty/basic-beauty.esm.js +1 -1
  16. package/plugins/video-effect/basic-beauty/basic-beauty.umd.js +1 -1
  17. package/plugins/video-effect/basic-beauty/package.json +1 -1
  18. package/plugins/video-effect/beauty/package.json +1 -1
  19. package/plugins/video-effect/video-mixer/package.json +1 -1
  20. package/plugins/video-effect/virtual-background/package.json +1 -1
  21. package/plugins/video-effect/virtual-background/virtual-background.esm.js +1 -1
  22. package/plugins/video-effect/virtual-background/virtual-background.umd.js +1 -1
  23. package/plugins/video-effect/watermark/package.json +1 -1
  24. package/plugins/voice-changer/package.json +1 -1
  25. package/trtc.esm.js +43 -64
  26. package/trtc.js +1 -1
  27. package/assets/av_processing.wasm +0 -0
  28. package/assets/worker.js +0 -17
package/index.d.ts CHANGED
@@ -8,6 +8,7 @@ import { CrossRoom, StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOp
8
8
  import { CustomEncryption, EncryptionOptions } from './plugins/custom-encryption';
9
9
  import { VideoMixerOptions, VideoMixer} from './plugins/video-effect/video-mixer'
10
10
  import { SmallStreamAutoSwitcher, SmallStreamAutoSwitcherOptions } from './plugins/small-stream-auto-switcher';
11
+ import { InitAudioProcessorOptions, UpdateAudioProcessorOptions } from 'trtc-js-sdk-core';
11
12
 
12
13
  export { CDNStreamingOptions, DeviceDetectorOptions, VirtualBackgroundOptions, UpdateVirtualBackgroundOptions, WatermarkOptions, BeautyOptions, UpdateBeautyOptions, BasicBeautyOptions, StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOption, SmallStreamAutoSwitcherOptions, VideoMixerOptions };
13
14
  type TRTCPlugin = typeof CrossRoom | typeof CDNStreaming | typeof DeviceDetector | typeof VirtualBackground | typeof Watermark | typeof Beauty | typeof BasicBeauty | typeof CustomEncryption | typeof SmallStreamAutoSwitcher | typeof VideoMixer;
@@ -28,6 +29,7 @@ export declare type PluginStartOptionsMap = {
28
29
  'CrossRoom': StartCrossRoomOption;
29
30
  'CustomEncryption': EncryptionOptions;
30
31
  'SmallStreamAutoSwitcher': SmallStreamAutoSwitcherOptions;
32
+ 'AudioProcessor': InitAudioProcessorOptions;
31
33
  };
32
34
 
33
35
  export declare type PluginUpdateOptionsMap = {
@@ -39,6 +41,7 @@ export declare type PluginUpdateOptionsMap = {
39
41
  'Beauty': UpdateBeautyOptions;
40
42
  'BasicBeauty': BasicBeautyOptions;
41
43
  'CrossRoom': UpdateCrossRoomOption;
44
+ 'AudioProcessor': UpdateAudioProcessorOptions;
42
45
  };
43
46
 
44
47
  export declare type PluginStopOptionsMap = {
@@ -54,6 +57,7 @@ export declare type PluginStopOptionsMap = {
54
57
  'Debug': undefined;
55
58
  'CrossRoom': StopCrossRoomOption | undefined;
56
59
  'SmallStreamAutoSwitcher': undefined;
60
+ 'AudioProcessor': undefined;
57
61
  };
58
62
 
59
63
  export declare class RtcError extends Error implements RTCErrorInterface {
@@ -381,7 +385,7 @@ export declare interface SwitchRoomConfig {
381
385
  roomId?: number,
382
386
  strRoomId?: string;
383
387
  privateMapKey?: string;
384
- userSig?: string;
388
+ userSig: string;
385
389
  }
386
390
 
387
391
  export declare interface ScreenShareConfig {
@@ -630,7 +634,7 @@ export declare interface StopAudioMixerOptions {
630
634
  id: string;
631
635
  }
632
636
  export declare interface AIDenoiserOptions {
633
- assetsPath: string;
637
+ assetsPath?: string;
634
638
  sdkAppId: number;
635
639
  userId: string;
636
640
  userSig: string;
@@ -1401,6 +1405,8 @@ export declare class TRTC {
1401
1405
  * - [Contact us](https://trtc.io/contact) to enable this API.
1402
1406
  *
1403
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.
1404
1410
  * @param {number=} options.roomId
1405
1411
  * the value must be an integer between 1 and 4294967294<br>
1406
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>
@@ -1409,8 +1415,6 @@ export declare class TRTC {
1409
1415
  * - Uppercase and lowercase English letters (a-zA-Z)
1410
1416
  * - Numbers (0-9)
1411
1417
  * - Space ! # $ % & ( ) + - : ; < = . > ? @ [ ] ^ _ { } | ~ ,
1412
- * @param {string} options.userSig UserSig signature <br>
1413
- * Please refer to [UserSig related](https://trtc.io/document/35166) for the calculation method of userSig.
1414
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>
1415
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=).
1416
1420
  * @throws
@@ -1426,7 +1430,10 @@ export declare class TRTC {
1426
1430
  * scene: TRTC.TYPE.SCENE_LIVE,
1427
1431
  * role: TRTC.TYPE.ROLE_AUDIENCE
1428
1432
  * });
1429
- * await trtc.switchRoom({ roomId: 9999 });
1433
+ * await trtc.switchRoom({
1434
+ * userSig,
1435
+ * roomId: 9999
1436
+ * });
1430
1437
  */
1431
1438
  switchRoom(params: SwitchRoomConfig): Promise<void>;
1432
1439
  /**
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.10.2-wasm.3",
3
+ "version": "5.11.0-beta.10",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
- "module": "trtc.esm.js",
6
- "type": "module",
5
+ "main": "trtc.js",
7
6
  "types": "index.d.ts",
7
+ "dependencies": {
8
+ "webrtc-adapter": "^8.2.3"
9
+ },
8
10
  "keywords": [
9
11
  "webrtc",
10
12
  "TRTC",
@@ -27,4 +29,4 @@
27
29
  },
28
30
  "author": "Tencent Cloud Client R&D Center",
29
31
  "license": "ISC"
30
- }
32
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cdn-streaming",
3
- "version": "5.10.2-wasm.3",
3
+ "version": "5.11.0-beta.10",
4
4
  "description": "TRTC Web SDK 5.x CDN streaming plugin",
5
5
  "main": "./cdn-streaming.esm.js",
6
6
  "module": "./cdn-streaming.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cross-room",
3
- "version": "5.10.2-wasm.3",
3
+ "version": "5.11.0-beta.10",
4
4
  "description": "TRTC Web SDK 5.x Cross Room plugin",
5
5
  "main": "./cross-room.esm.js",
6
6
  "module": "./cross-room.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/custom-encryption",
3
- "version": "5.10.2-wasm.3",
3
+ "version": "5.11.0-beta.10",
4
4
  "main": "./custom-encryption.esm.js",
5
5
  "module": "./custom-encryption.esm.js",
6
6
  "types": "./custom-encryption.esm.d.ts"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/device-detector",
3
- "version": "5.10.2-wasm.3",
3
+ "version": "5.11.0-beta.10",
4
4
  "description": "TRTC Web SDK 5.x device detector plugin",
5
5
  "main": "./device-detector.esm.js",
6
6
  "module": "./device-detector.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/small-stream-auto-switcher",
3
- "version": "5.10.2-wasm.3",
3
+ "version": "5.11.0-beta.10",
4
4
  "description": "",
5
5
  "main": "./small-stream-auto-switcher.esm.js",
6
6
  "keywords": [],