trtc-sdk-v5 5.8.1-beta.3 → 5.8.1-beta.4

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
@@ -1,12 +1,49 @@
1
- import { CDNStreamingOptions } from './plugins/cdn-streaming';
2
- import { DeviceDetectorOptions } from './plugins/device-detector';
3
- import { VirtualBackgroundOptions, UpdateVirtualBackgroundOptions } from './plugins/video-effect/virtual-background';
4
- import { WatermarkOptions } from './plugins/video-effect/watermark';
5
- import { BeautyOptions, UpdateBeautyOptions } from './plugins/video-effect/beauty';
6
- import { BasicBeautyOptions } from './plugins/video-effect/basic-beauty';
7
- import { StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOption } from './plugins/cross-room';
1
+ import { CDNStreaming, CDNStreamingOptions } from './plugins/cdn-streaming';
2
+ import { DeviceDetector, DeviceDetectorOptions } from './plugins/device-detector';
3
+ import { VirtualBackground, VirtualBackgroundOptions, UpdateVirtualBackgroundOptions } from './plugins/video-effect/virtual-background';
4
+ import { Watermark, WatermarkOptions } from './plugins/video-effect/watermark';
5
+ import { Beauty, BeautyOptions, UpdateBeautyOptions } from './plugins/video-effect/beauty';
6
+ import { BasicBeauty, BasicBeautyOptions } from './plugins/video-effect/basic-beauty';
7
+ import { CrossRoom, StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOption } from './plugins/cross-room';
8
+ import { Debug, DebugOptions } from './plugins/debug'
9
+
10
+ export { CDNStreamingOptions, DeviceDetectorOptions, VirtualBackgroundOptions, UpdateVirtualBackgroundOptions, WatermarkOptions, BeautyOptions, UpdateBeautyOptions, BasicBeautyOptions, StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOption, DebugOptions };
11
+ type TRTCPlugin = typeof CrossRoom | typeof CDNStreaming | typeof DeviceDetector | typeof VirtualBackground | typeof Watermark | typeof Beauty | typeof BasicBeauty | typeof Debug;
12
+
13
+ export declare type PluginStartOptionsMap = {
14
+ 'AudioMixer': AudioMixerOptions;
15
+ 'AIDenoiser': AIDenoiserOptions;
16
+ 'CDNStreaming': CDNStreamingOptions;
17
+ 'VirtualBackground': VirtualBackgroundOptions;
18
+ 'Watermark': WatermarkOptions;
19
+ 'Beauty': BeautyOptions;
20
+ 'BasicBeauty': BasicBeautyOptions;
21
+ 'DeviceDetector': DeviceDetectorOptions;
22
+ 'Debug': undefined;
23
+ 'CrossRoom': StartCrossRoomOption;
24
+ };
25
+ export declare type PluginUpdateOptionsMap = {
26
+ 'AudioMixer': UpdateAudioMixerOptions;
27
+ 'CDNStreaming': CDNStreamingOptions;
28
+ 'VirtualBackground': UpdateVirtualBackgroundOptions;
29
+ 'Beauty': UpdateBeautyOptions;
30
+ 'BasicBeauty': BasicBeautyOptions;
31
+ 'CrossRoom': UpdateCrossRoomOption;
32
+ };
33
+
34
+ export declare type PluginStopOptionsMap = {
35
+ 'AudioMixer': StopAudioMixerOptions;
36
+ 'AIDenoiser': undefined;
37
+ 'CDNStreaming': CDNStreamingOptions;
38
+ 'VirtualBackground': undefined;
39
+ 'Watermark': undefined;
40
+ 'Beauty': undefined;
41
+ 'BasicBeauty': undefined;
42
+ 'DeviceDetector': undefined;
43
+ 'Debug': undefined;
44
+ 'CrossRoom': StopCrossRoomOption | undefined;
45
+ };
8
46
 
9
- export { CDNStreamingOptions, DeviceDetectorOptions, VirtualBackgroundOptions, UpdateVirtualBackgroundOptions, WatermarkOptions, BeautyOptions, UpdateBeautyOptions, BasicBeautyOptions, StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOption };
10
47
  export declare class RtcError extends Error implements RTCErrorInterface {
11
48
  name: string;
12
49
  /**
@@ -250,17 +287,12 @@ export declare const enum BannedReason {
250
287
  ROOM_DISBAND = "room_disband"
251
288
  }
252
289
 
253
- export declare interface IPluginClass {
254
- Name: string;
255
- new(core: any): any;
256
- }
257
-
258
290
  export declare type PluginWithAssets = {
259
- plugin: IPluginClass;
291
+ plugin: TRTCPlugin;
260
292
  assetsPath?: string;
261
293
  };
262
294
  export declare interface TRTCOptions {
263
- plugins?: Array<IPluginClass>;
295
+ plugins?: Array<TRTCPlugin>;
264
296
  enableSEI?: boolean;
265
297
  assetsPath?: string;
266
298
  }
@@ -555,47 +587,7 @@ export declare interface AIDenoiserOptions {
555
587
  userId: string;
556
588
  userSig: string;
557
589
  }
558
- export declare type PluginStartOptionsMap = {
559
- 'AudioMixer': AudioMixerOptions;
560
- 'AIDenoiser': AIDenoiserOptions;
561
- 'CDNStreaming': CDNStreamingOptions;
562
- 'VirtualBackground': VirtualBackgroundOptions;
563
- 'Watermark': WatermarkOptions;
564
- 'Beauty': BeautyOptions;
565
- 'BasicBeauty': BasicBeautyOptions;
566
- 'DeviceDetector': DeviceDetectorOptions;
567
- 'SEI': undefined;
568
- 'Debug': undefined;
569
- 'CrossRoom': StartCrossRoomOption;
570
- };
571
- export declare type PluginUpdateOptionsMap = {
572
- 'AudioMixer': UpdateAudioMixerOptions;
573
- 'CDNStreaming': CDNStreamingOptions;
574
- 'VirtualBackground': UpdateVirtualBackgroundOptions;
575
- 'Beauty': UpdateBeautyOptions;
576
- 'BasicBeauty': BasicBeautyOptions;
577
- 'SEI': UpdateSEIOptions;
578
- 'CrossRoom': UpdateCrossRoomOption;
579
- };
580
- export declare interface UpdateSEIOptions {
581
- buffer: ArrayBuffer;
582
- options: {
583
- seiPayloadType: number;
584
- toSubStream?: boolean;
585
- };
586
- }
587
- export declare type PluginStopOptionsMap = {
588
- 'AudioMixer': StopAudioMixerOptions;
589
- 'AIDenoiser': undefined;
590
- 'CDNStreaming': CDNStreamingOptions;
591
- 'VirtualBackground': undefined;
592
- 'Watermark': undefined;
593
- 'Beauty': undefined;
594
- 'BasicBeauty': undefined;
595
- 'DeviceDetector': undefined;
596
- 'Debug': undefined;
597
- 'CrossRoom': StopCrossRoomOption | undefined;
598
- };
590
+
599
591
  export declare interface TRTCStatistics {
600
592
  rtt: number;
601
593
  downLoss: number;
@@ -1197,7 +1189,7 @@ export declare class TRTC {
1197
1189
  * import { VirtualBackground } from 'trtc-sdk-v5/plugins/video-effect/virtual-background';
1198
1190
  * trtc.use(VirtualBackground);
1199
1191
  */
1200
- use(pluginObject: PluginWithAssets | IPluginClass): void;
1192
+ use(pluginObject: PluginWithAssets | TRTCPlugin): void;
1201
1193
  /**
1202
1194
  * @typedef TurnServer
1203
1195
  * @property {string} url TURN server url
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.8.1-beta.3",
3
+ "version": "5.8.1-beta.4",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "main": "trtc.js",
6
6
  "types": "index.d.ts",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cdn-streaming",
3
- "version": "5.8.1-beta.3",
3
+ "version": "5.8.1-beta.4",
4
4
  "description": "TRTC Web SDK 5.x CDN streaming plugin",
5
5
  "main": "./cdn-streaming.esm.js",
6
6
  "author": "longyuqi <longyuqi@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cross-room",
3
- "version": "5.8.1-beta.3",
3
+ "version": "5.8.1-beta.4",
4
4
  "description": "TRTC Web SDK 5.x Cross Room plugin",
5
5
  "main": "./cross-room.esm.js",
6
6
  "author": "rychouwei <rychouwei@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/debug",
3
- "version": "5.8.1-beta.3",
3
+ "version": "5.8.1-beta.4",
4
4
  "description": "TRTC Web SDK Debug Plugin",
5
5
  "main": "./debug.esm.js",
6
6
  "author": "leochliu <leochliu@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/device-detector",
3
- "version": "5.8.1-beta.3",
3
+ "version": "5.8.1-beta.4",
4
4
  "description": "TRTC Web SDK 5.x device detector plugin",
5
5
  "main": "./device-detector.esm.js",
6
6
  "author": "edwards <edwards@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/basic-beauty",
3
- "version": "5.8.1-beta.3",
3
+ "version": "5.8.1-beta.4",
4
4
  "description": "TRTC Web SDK 5.x basic-beauty plugin",
5
5
  "main": "./basic-beauty.esm.js",
6
6
  "author": "longyuqi <longyuqi@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/beauty",
3
- "version": "5.8.1-beta.3",
3
+ "version": "5.8.1-beta.4",
4
4
  "description": "TRTC Web SDK 5.x beauty plugin",
5
5
  "main": "./beauty.esm.js",
6
6
  "author": "longyuqi <longyuqi@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/virtual-background",
3
- "version": "5.8.1-beta.3",
3
+ "version": "5.8.1-beta.4",
4
4
  "description": "TRTC Web SDK 5.x virtual background plugin",
5
5
  "main": "./virtual-background.esm.js",
6
6
  "author": "longyuqi <longyuqi@tencent.com>",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/watermark",
3
- "version": "5.8.1-beta.3",
3
+ "version": "5.8.1-beta.4",
4
4
  "description": "TRTC Web SDK 5.x watermark plugin",
5
5
  "main": "./watermark.esm.js",
6
6
  "author": "longyuqi <longyuqi@tencent.com>",