trtc-sdk-v5 5.5.2-beta.7 → 5.5.2-ktv

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,6 +8,7 @@
8
8
  plugins?: Array<IPlugin>;
9
9
  enableSEI?: boolean;
10
10
  assetsPath?: string;
11
+ enableChorus?: boolean;
11
12
  }
12
13
  declare interface LocalVideoConfig {
13
14
  view?: string | HTMLElement | HTMLElement[] | null;
@@ -306,11 +307,13 @@
306
307
  'CDNStreaming': CDNStreamingOptions;
307
308
  'VirtualBackground': VirtualBackgroundOptions;
308
309
  'Watermark': WatermarkOptions;
310
+ 'Beauty': BeautyOptions;
309
311
  };
310
312
  declare type PluginUpdateOptionsMap = {
311
313
  'AudioMixer': UpdateAudioMixerOptions;
312
314
  'CDNStreaming': CDNStreamingOptions;
313
315
  'VirtualBackground': UpdateVirtualBackgroundOptions;
316
+ 'Beauty': UpdateBeautyOptions;
314
317
  };
315
318
  declare type PluginStopOptionsMap = {
316
319
  'AudioMixer': StopAudioMixerOptions;
@@ -318,6 +321,7 @@
318
321
  'CDNStreaming': CDNStreamingOptions;
319
322
  'VirtualBackground': undefined;
320
323
  'Watermark': undefined;
324
+ 'Beauty': undefined;
321
325
  };
322
326
  declare interface TRTCStatistics {
323
327
  rtt: number;
@@ -491,7 +495,7 @@
491
495
  *
492
496
  * - By default, the SDK automatically plays remote audio, and you do not need to call the API to play remote audio. You can listen for this event and {@link module:EVENT.REMOTE_AUDIO_UNAVAILABLE REMOTE_AUDIO_UNAVAILABLE} to update the UI icon for "whether the remote microphone is turned on".
493
497
  * - Note: If the user has not interacted with the page before entering the room, automatic audio playback may fail due to the [browser's automatic playback policy restrictions](./tutorial-21-advanced-auto-play-policy.html). You need to refer to the [suggestions for handling automatic playback restrictions](./tutorial-21-advanced-auto-play-policy.html) for processing.
494
- * - If you do not want the SDK to automatically play audio, you can set receiveMode = {@link module:TYPE.RECEIVE_MODE_MANUAL TRTC.TYPE.RECEIVE_MODE_MANUAL} to turn off automatic audio playback when {@link TRTC#enterRoom trtc.enterRoom()}.
498
+ * - If you do not want the SDK to automatically play audio, you can set `autoReceiveAudio` to `false` to turn off automatic audio playback when calling {@link TRTC#enterRoom trtc.enterRoom()}.
495
499
  * - Listen for the {@link module:EVENT.REMOTE_AUDIO_AVAILABLE TRTC.EVENT.REMOTE_AUDIO_AVAILABLE} event, record the userId with remote audio, and call the {@link TRTC#muteRemoteAudio trtc.muteRemoteAudio(userId, false)} method when you need to play audio.
496
500
  * @default 'remote-audio-available'
497
501
  * @memberof module:EVENT
@@ -782,6 +786,7 @@
782
786
  * })
783
787
  */
784
788
  readonly TRACK: "track";
789
+ readonly NETWORK_TIME_UPDATED: "network-time-updated";
785
790
  };
786
791
  declare interface TRTCEventTypes {
787
792
  [TRTCEvent.ERROR]: [RtcError];
@@ -859,6 +864,9 @@
859
864
  streamType?: TRTCStreamType;
860
865
  track: MediaStreamTrack;
861
866
  }];
867
+ [TRTCEvent.NETWORK_TIME_UPDATED]: [{
868
+ networkTime: number;
869
+ }];
862
870
  }
863
871
  class TRTC extends EventEmitter<TRTCEventTypes> {
864
872
  /**
@@ -873,6 +881,7 @@
873
881
  * @returns {TRTC} TRTC object
874
882
  */
875
883
  static create(options?: TRTCOptions): TRTC;
884
+ getNetworkTime(): number;
876
885
  /**
877
886
  * @private
878
887
  * 注册插件 <br>
@@ -1634,6 +1643,7 @@
1634
1643
  readonly STATISTICS: "statistics";
1635
1644
  readonly SEI_MESSAGE: "sei-message";
1636
1645
  readonly TRACK: "track";
1646
+ readonly NETWORK_TIME_UPDATED: "network-time-updated";
1637
1647
  };
1638
1648
  static ERROR_CODE: {
1639
1649
  INVALID_PARAMETER: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.5.2-beta.7",
3
+ "version": "5.5.2-ktv",
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.5.2-beta.7",
3
+ "version": "5.5.2",
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>",
@@ -4,6 +4,12 @@ export interface AuthParam {
4
4
  userSig: string;
5
5
  }
6
6
 
7
+ export interface Effect {
8
+ id: string;
9
+ intensity?: number;
10
+ filterIntensity?: number;
11
+ }
12
+
7
13
  export interface BeautyOptions {
8
14
  sdkAppId: number;
9
15
  userId: string;
@@ -14,6 +20,7 @@ export interface BeautyOptions {
14
20
  shave?: number;
15
21
  eye?: number;
16
22
  chin?: number;
23
+ effect?: Effect[];
17
24
  onError?: () => {}
18
25
  }
19
26
 
@@ -25,6 +32,7 @@ export interface UpdateBeautyOptions {
25
32
  shave?: number;
26
33
  eye?: number;
27
34
  chin?: number;
35
+ effect?: Effect[];
28
36
  }
29
37
 
30
38
  export declare class Beauty {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/beauty",
3
- "version": "5.5.2-beta.7",
3
+ "version": "5.5.2",
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.5.2-beta.7",
3
+ "version": "5.5.2",
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>",