trtc-sdk-v5 5.13.1-wasm.4 → 5.13.1-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 +11 -9
- package/package.json +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/chorus/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/video-decoder/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/video-mixer/package.json +1 -1
- package/plugins/video-effect/virtual-background/package.json +1 -1
- package/plugins/video-effect/watermark/package.json +1 -1
- package/plugins/voice-changer/package.json +1 -1
- package/trtc.esm.js +3 -3
- package/trtc.js +1 -1
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
|
|
|
@@ -14,7 +14,7 @@ export { CDNStreamingOptions, DeviceDetectorOptions, VirtualBackgroundOptions, U
|
|
|
14
14
|
type TRTCPlugin = typeof CrossRoom | typeof CDNStreaming | typeof DeviceDetector | typeof VirtualBackground | typeof Watermark | typeof Beauty | typeof BasicBeauty | typeof CustomEncryption | typeof SmallStreamAutoSwitcher | typeof VideoMixer | typeof Chorus;
|
|
15
15
|
export declare type ExperimentalAPIFunctionMap = {
|
|
16
16
|
'enableAudioFrameEvent': EnableAudioFrameEventOptions;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
18
|
export declare type PluginStartOptionsMap = {
|
|
19
19
|
'AudioMixer': AudioMixerOptions;
|
|
20
20
|
'AIDenoiser': AIDenoiserOptions;
|
|
@@ -60,6 +60,8 @@ export declare type PluginStopOptionsMap = {
|
|
|
60
60
|
'CrossRoom': StopCrossRoomOption | undefined;
|
|
61
61
|
'SmallStreamAutoSwitcher': undefined;
|
|
62
62
|
'AudioProcessor': undefined;
|
|
63
|
+
'CustomEncryption': undefined;
|
|
64
|
+
'Chorus': undefined;
|
|
63
65
|
};
|
|
64
66
|
|
|
65
67
|
export declare class RtcError extends Error implements RTCErrorInterface {
|
|
@@ -682,7 +684,7 @@ export declare interface UpdateAudioProcessorOptions {
|
|
|
682
684
|
}
|
|
683
685
|
|
|
684
686
|
export declare interface UpdateDebugOptions {
|
|
685
|
-
visible: boolean
|
|
687
|
+
visible: boolean;
|
|
686
688
|
}
|
|
687
689
|
|
|
688
690
|
export declare type AudioSource = HTMLAudioElement | MediaStreamAudioTrack | AudioNode;
|
|
@@ -736,11 +738,11 @@ export declare const enum AutoStartPluginName {
|
|
|
736
738
|
Debug = 'Debug'
|
|
737
739
|
}
|
|
738
740
|
export declare interface EnableAudioFrameEventOptions {
|
|
739
|
-
enable: boolean
|
|
740
|
-
userId: string
|
|
741
|
-
sampleRate?: number
|
|
742
|
-
channelCount?: number
|
|
743
|
-
port?: MessagePort
|
|
741
|
+
enable: boolean;
|
|
742
|
+
userId: string;
|
|
743
|
+
sampleRate?: number;
|
|
744
|
+
channelCount?: number;
|
|
745
|
+
port?: MessagePort;
|
|
744
746
|
}
|
|
745
747
|
|
|
746
748
|
/**
|
|
@@ -1239,7 +1241,7 @@ export declare const TRTCEvent: {
|
|
|
1239
1241
|
* // event.userId: The user ID of the local or a remote user. If it is empty, it indicates that video is the local video and the local user has not entered the room; if it is not empty, it indicates that video is remote video or local user enter room already.
|
|
1240
1242
|
* })
|
|
1241
1243
|
*/
|
|
1242
|
-
readonly VIDEO_SIZE_CHANGED: 'video-size-changed'
|
|
1244
|
+
readonly VIDEO_SIZE_CHANGED: 'video-size-changed';
|
|
1243
1245
|
};
|
|
1244
1246
|
export declare interface TRTCEventTypes {
|
|
1245
1247
|
[TRTCEvent.ERROR]: [RtcError];
|
package/package.json
CHANGED