trtc-sdk-v5 5.13.1-wasm.8 → 5.13.2-beta.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 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 declare type ExperimentalAPIFunctionMap = {
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 | 'remote-only' | 'all';
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-wasm.8",
3
+ "version": "5.13.2-beta.1",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
- "module": "trtc.esm.js",
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
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cdn-streaming",
3
- "version": "5.13.1-wasm.8",
3
+ "version": "5.13.2-beta.1",
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",