trtc-sdk-v5 5.13.0-wasm.5 → 5.13.0-wasm.6

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 CHANGED
@@ -6,7 +6,7 @@ import { Beauty, BeautyOptions, UpdateBeautyOptions } from './plugins/video-effe
6
6
  import { BasicBeauty, BasicBeautyOptions } from './plugins/video-effect/basic-beauty';
7
7
  import { CrossRoom, StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOption } from './plugins/cross-room';
8
8
  import { CustomEncryption, EncryptionOptions } from './plugins/custom-encryption';
9
- import { VideoMixerOptions, UpdateVideoMixerOptions, VideoMixer} from './plugins/video-effect/video-mixer'
9
+ import { VideoMixerOptions, UpdateVideoMixerOptions, VideoMixer } from './plugins/video-effect/video-mixer'
10
10
  import { SmallStreamAutoSwitcher, SmallStreamAutoSwitcherOptions } from './plugins/small-stream-auto-switcher';
11
11
  import { Chorus } from './plugins/chorus';
12
12
 
@@ -34,6 +34,7 @@ export declare type PluginStartOptionsMap = {
34
34
 
35
35
  export declare type PluginUpdateOptionsMap = {
36
36
  'AudioMixer': UpdateAudioMixerOptions;
37
+ 'AIDenoiser': UpdateDenoiserOptions;
37
38
  'CDNStreaming': CDNStreamingOptions;
38
39
  'VirtualBackground': UpdateVirtualBackgroundOptions;
39
40
  'Watermark': WatermarkOptions;
@@ -41,7 +42,7 @@ export declare type PluginUpdateOptionsMap = {
41
42
  'Beauty': UpdateBeautyOptions;
42
43
  'BasicBeauty': BasicBeautyOptions;
43
44
  'CrossRoom': UpdateCrossRoomOption;
44
- 'AudioProcessor': UpdateAudioProcessorOptions;
45
+ 'AudioProcessor': UpdateAudioProcessorOptions;
45
46
  'Debug': UpdateDebugOptions;
46
47
  };
47
48
 
@@ -58,7 +59,7 @@ export declare type PluginStopOptionsMap = {
58
59
  'Debug': undefined;
59
60
  'CrossRoom': StopCrossRoomOption | undefined;
60
61
  'SmallStreamAutoSwitcher': undefined;
61
- 'AudioProcessor': undefined;
62
+ 'AudioProcessor': undefined;
62
63
  };
63
64
 
64
65
  export declare class RtcError extends Error implements RTCErrorInterface {
@@ -391,10 +392,10 @@ export interface PlayoutDelay {
391
392
  }
392
393
 
393
394
  export declare interface SwitchRoomConfig {
394
- roomId?: number,
395
- strRoomId?: string;
396
- privateMapKey?: string;
397
- userSig: string;
395
+ roomId?: number,
396
+ strRoomId?: string;
397
+ privateMapKey?: string;
398
+ userSig: string;
398
399
  }
399
400
 
400
401
  export declare interface ScreenShareConfig {
@@ -649,6 +650,14 @@ export declare interface UpdateAudioMixerOptions {
649
650
  seekFrom?: number;
650
651
  operation?: 'pause' | 'resume' | 'stop';
651
652
  }
653
+ export declare enum DenoiserMode {
654
+ NORMAL = 0,
655
+ FAR_FIELD_REDUCTION = 1
656
+ }
657
+
658
+ export declare interface UpdateDenoiserOptions {
659
+ mode: DenoiserMode;
660
+ }
652
661
  export declare interface StopAudioMixerOptions {
653
662
  id: string;
654
663
  }
@@ -657,9 +666,10 @@ export declare interface AIDenoiserOptions {
657
666
  sdkAppId: number;
658
667
  userId: string;
659
668
  userSig: string;
669
+ mode?: DenoiserMode;
660
670
  }
661
671
 
662
- export declare interface InitAudioProcessorOptions {
672
+ export declare interface InitAudioProcessorOptions {
663
673
  assetsPath?: string,
664
674
  sdkAppId: number,
665
675
  userId: string,
@@ -1320,11 +1330,11 @@ export declare interface TRTCEventTypes {
1320
1330
  camera: PermissionState;
1321
1331
  microphone: PermissionState;
1322
1332
  }];
1323
- [TRTCEvent.VIDEO_SIZE_CHANGED]: [{
1324
- newWidth: number;
1325
- newHeight: number;
1326
- streamType: TRTCStreamType;
1327
- userId: string;
1333
+ [TRTCEvent.VIDEO_SIZE_CHANGED]: [{
1334
+ newWidth: number;
1335
+ newHeight: number;
1336
+ streamType: TRTCStreamType;
1337
+ userId: string;
1328
1338
  }];
1329
1339
  [TRTCEvent.FIRST_VIDEO_FRAME]: [{
1330
1340
  userId: string;
@@ -1491,10 +1501,10 @@ export declare class TRTC {
1491
1501
  * await trtc.switchRole(TRTC.TYPE.ROLE_ANCHOR, { privateMapKey: 'your new privateMapKey' });
1492
1502
  */
1493
1503
  switchRole(role: UserRole, option?: {
1494
- privateMapKey?: string;
1495
- latencyLevel?: number;
1496
- }): Promise<void>;
1497
- /**
1504
+ privateMapKey?: string;
1505
+ latencyLevel?: number;
1506
+ }): Promise<void>;
1507
+ /**
1498
1508
  * Switch a video call room.<br>
1499
1509
  * - Switch the video call room that the audience is watching in live scene. It is faster than exit old room and then entering the new room, and can optimize the opening time in live broadcast and other scenarios.
1500
1510
  * - [Contact us](https://trtc.io/contact) to enable this API.
@@ -1530,25 +1540,25 @@ export declare class TRTC {
1530
1540
  * roomId: 9999
1531
1541
  * });
1532
1542
  */
1533
- switchRoom(params: SwitchRoomConfig): Promise<void>;
1534
- /**
1535
- * Destroy the TRTC instance <br/>
1536
- *
1537
- * After exiting the room, if the business side no longer needs to use trtc, you need to call this interface to destroy the trtc instance in time and release related resources.
1538
- *
1539
- * Note:
1540
- * - The trtc instance after destruction cannot be used again.
1541
- * - If you have entered the room, you need to call the {@link TRTC#exitRoom TRTC.exitRoom} interface to exit the room successfully before calling this interface to destroy trtc.
1542
- *
1543
- * @example
1544
- * // When the call is over
1545
- * await trtc.exitRoom();
1546
- * // If the trtc is no longer needed, destroy the trtc and release the reference.
1547
- * trtc.destroy();
1548
- * trtc = null;
1549
- * @throws {@link module:ERROR_CODE.OPERATION_FAILED OPERATION_FAILED}
1550
- * @memberof TRTC
1551
- */
1543
+ switchRoom(params: SwitchRoomConfig): Promise<void>;
1544
+ /**
1545
+ * Destroy the TRTC instance <br/>
1546
+ *
1547
+ * After exiting the room, if the business side no longer needs to use trtc, you need to call this interface to destroy the trtc instance in time and release related resources.
1548
+ *
1549
+ * Note:
1550
+ * - The trtc instance after destruction cannot be used again.
1551
+ * - If you have entered the room, you need to call the {@link TRTC#exitRoom TRTC.exitRoom} interface to exit the room successfully before calling this interface to destroy trtc.
1552
+ *
1553
+ * @example
1554
+ * // When the call is over
1555
+ * await trtc.exitRoom();
1556
+ * // If the trtc is no longer needed, destroy the trtc and release the reference.
1557
+ * trtc.destroy();
1558
+ * trtc = null;
1559
+ * @throws {@link module:ERROR_CODE.OPERATION_FAILED OPERATION_FAILED}
1560
+ * @memberof TRTC
1561
+ */
1552
1562
  destroy(): void;
1553
1563
  /**
1554
1564
  * Start collecting audio from the local microphone and publish it to the current room.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "module": "trtc.esm.js",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cdn-streaming",
3
- "version": "5.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
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/chorus",
3
- "version": "5.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
4
4
  "description": "TRTC Web SDK 5.x Chorus plugin",
5
5
  "main": "./chorus.esm.js",
6
6
  "module": "./chorus.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cross-room",
3
- "version": "5.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
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.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
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.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
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.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
4
4
  "description": "",
5
5
  "main": "./small-stream-auto-switcher.esm.js",
6
6
  "keywords": [],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/video-decoder",
3
- "version": "5.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
4
4
  "description": "Video decoder plugin for TRTC",
5
5
  "main": "./video-decoder.esm.js",
6
6
  "module": "./video-decoder.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/basic-beauty",
3
- "version": "5.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
4
4
  "description": "TRTC Web SDK 5.x basic-beauty plugin",
5
5
  "main": "./basic-beauty.esm.js",
6
6
  "module": "./basic-beauty.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/beauty",
3
- "version": "5.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
4
4
  "description": "TRTC Web SDK 5.x beauty plugin",
5
5
  "main": "./beauty.esm.js",
6
6
  "module": "./beauty.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/video-mixer",
3
- "version": "5.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
4
4
  "description": "TRTC Web SDK 5.x videoMixer plugin",
5
5
  "main": "./video-mixer.esm.js",
6
6
  "module": "./video-mixer.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/virtual-background",
3
- "version": "5.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
4
4
  "description": "TRTC Web SDK 5.x virtual background plugin",
5
5
  "main": "./virtual-background.esm.js",
6
6
  "module": "./virtual-background.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/watermark",
3
- "version": "5.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
4
4
  "description": "TRTC Web SDK 5.x watermark plugin",
5
5
  "main": "./watermark.esm.js",
6
6
  "module": "./watermark.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/voice-changer",
3
- "version": "5.13.0-wasm.5",
3
+ "version": "5.13.0-wasm.6",
4
4
  "description": "",
5
5
  "main": "./voice-changer.esm.js",
6
6
  "keywords": [],