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 +49 -57
- package/package.json +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/cross-room/package.json +1 -1
- package/plugins/debug/package.json +1 -1
- package/plugins/device-detector/package.json +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/virtual-background/package.json +1 -1
- package/plugins/video-effect/watermark/package.json +1 -1
- package/trtc.esm.js +1 -1
- package/trtc.js +1 -1
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:
|
|
291
|
+
plugin: TRTCPlugin;
|
|
260
292
|
assetsPath?: string;
|
|
261
293
|
};
|
|
262
294
|
export declare interface TRTCOptions {
|
|
263
|
-
plugins?: Array<
|
|
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
|
-
|
|
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 |
|
|
1192
|
+
use(pluginObject: PluginWithAssets | TRTCPlugin): void;
|
|
1201
1193
|
/**
|
|
1202
1194
|
* @typedef TurnServer
|
|
1203
1195
|
* @property {string} url TURN server url
|
package/package.json
CHANGED