trtc-sdk-v5 5.13.1-wasm.8 → 5.13.1
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 +12 -4
- package/package.json +6 -4
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/chorus/chorus.esm.js +1 -1
- package/plugins/chorus/chorus.umd.js +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/virtual-background/virtual-background.esm.js +1 -1
- package/plugins/video-effect/virtual-background/virtual-background.umd.js +1 -1
- package/plugins/video-effect/watermark/package.json +1 -1
- package/plugins/voice-changer/package.json +1 -1
- package/plugins/voice-changer/voice-changer.esm.js +1 -1
- package/plugins/voice-changer/voice-changer.umd.js +1 -1
- package/trtc.esm.js +44 -65
- package/trtc.js +1 -1
- package/assets/av_processing.wasm +0 -0
- package/assets/worker.js +0 -17
package/index.d.ts
CHANGED
|
@@ -8,13 +8,18 @@ import { CrossRoom, StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOp
|
|
|
8
8
|
import { CustomEncryption, EncryptionOptions } from './plugins/custom-encryption';
|
|
9
9
|
import { VideoMixerOptions, UpdateVideoMixerOptions, VideoMixer } from './plugins/video-effect/video-mixer';
|
|
10
10
|
import { SmallStreamAutoSwitcher, SmallStreamAutoSwitcherOptions } from './plugins/small-stream-auto-switcher';
|
|
11
|
-
import { Chorus } from './plugins/chorus';
|
|
11
|
+
import { Chorus, StartChorusOption, UpdateChorusOption } from './plugins/chorus';
|
|
12
12
|
|
|
13
13
|
export { CDNStreamingOptions, DeviceDetectorOptions, VirtualBackgroundOptions, UpdateVirtualBackgroundOptions, WatermarkOptions, BeautyOptions, UpdateBeautyOptions, BasicBeautyOptions, StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOption, SmallStreamAutoSwitcherOptions, VideoMixerOptions, UpdateVideoMixerOptions };
|
|
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
|
-
export
|
|
15
|
+
export type ExperimentalAPIFunctionMap = {
|
|
16
16
|
'enableAudioFrameEvent': EnableAudioFrameEventOptions;
|
|
17
|
-
|
|
17
|
+
'resumeRemotePlayer': RemotePlayerOptions;
|
|
18
|
+
'pauseRemotePlayer': RemotePlayerOptions;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface RemotePlayerOptions { userId: string, streamType?: TRTCStreamType }
|
|
22
|
+
|
|
18
23
|
export declare type PluginStartOptionsMap = {
|
|
19
24
|
'AudioMixer': AudioMixerOptions;
|
|
20
25
|
'AIDenoiser': AIDenoiserOptions;
|
|
@@ -30,6 +35,7 @@ export declare type PluginStartOptionsMap = {
|
|
|
30
35
|
'CustomEncryption': EncryptionOptions;
|
|
31
36
|
'SmallStreamAutoSwitcher': SmallStreamAutoSwitcherOptions;
|
|
32
37
|
'AudioProcessor': InitAudioProcessorOptions;
|
|
38
|
+
'Chorus': StartChorusOption;
|
|
33
39
|
};
|
|
34
40
|
|
|
35
41
|
export declare type PluginUpdateOptionsMap = {
|
|
@@ -44,6 +50,7 @@ export declare type PluginUpdateOptionsMap = {
|
|
|
44
50
|
'CrossRoom': UpdateCrossRoomOption;
|
|
45
51
|
'AudioProcessor': UpdateAudioProcessorOptions;
|
|
46
52
|
'Debug': UpdateDebugOptions;
|
|
53
|
+
'Chorus': UpdateChorusOption;
|
|
47
54
|
};
|
|
48
55
|
|
|
49
56
|
export declare type PluginStopOptionsMap = {
|
|
@@ -334,6 +341,7 @@ export declare interface TRTCOptions {
|
|
|
334
341
|
assetsPath?: string;
|
|
335
342
|
volumeType?: number;
|
|
336
343
|
enableAutoSwitchWhenRecapturing?: boolean;
|
|
344
|
+
enableVolumeControlInIOS?: boolean;
|
|
337
345
|
}
|
|
338
346
|
export interface VideoProfile { width: number, height: number, frameRate: number, bitrate: number; }
|
|
339
347
|
export interface AudioProfile { sampleRate: number, channelCount: number, bitrate: number; }
|
|
@@ -451,7 +459,7 @@ export declare interface LocalAudioConfig {
|
|
|
451
459
|
audioTrack?: MediaStreamTrack;
|
|
452
460
|
captureVolume?: number;
|
|
453
461
|
earMonitorVolume?: number;
|
|
454
|
-
echoCancellation?: boolean
|
|
462
|
+
echoCancellation?: boolean;
|
|
455
463
|
autoGainControl?: boolean;
|
|
456
464
|
noiseSuppression?: boolean;
|
|
457
465
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trtc-sdk-v5",
|
|
3
|
-
"version": "5.13.1
|
|
3
|
+
"version": "5.13.1",
|
|
4
4
|
"description": "Tencent Cloud RTC SDK for Web",
|
|
5
|
-
"
|
|
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
|
+
}
|