trtc-sdk-v5 5.9.3-beta.6 → 5.10.0-beta.2

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
@@ -324,6 +324,7 @@ export declare interface LocalVideoConfig {
324
324
  small?: keyof typeof videoProfileMap | VideoProfile | boolean;
325
325
  qosPreference?: typeof TRTCType.QOS_PREFERENCE_SMOOTH | typeof TRTCType.QOS_PREFERENCE_CLEAR;
326
326
  videoTrack?: MediaStreamTrack;
327
+ avoidCrop?: boolean;
327
328
  };
328
329
  }
329
330
  export interface TurnServerOptions {
@@ -365,11 +366,6 @@ export interface PlayoutDelay {
365
366
  max: number;
366
367
  }
367
368
 
368
- export interface JitterBufferDelay {
369
- main: number;
370
- aux: number;
371
- }
372
-
373
369
  export declare interface ScreenShareConfig {
374
370
  view?: string | HTMLElement | HTMLElement[] | null;
375
371
  publish?: boolean;
@@ -881,6 +877,20 @@ export declare const TRTCEvent: {
881
877
  * trtc.enableAudioVolumeEvaluation(1000);
882
878
  */
883
879
  readonly AUDIO_VOLUME: 'audio-volume';
880
+ /**
881
+ * @since v5.8.3
882
+ * @description Microphone pcm event, the pcm data can be used to do ASR.<br>
883
+ * **Note**
884
+ * - When start listen this event, will get 40ms pcm(float32) from microphone every time.
885
+ * @default 'audio-frame'
886
+ * @memberof module:EVENT
887
+ * @example
888
+ * trtc.on(TRTC.EVENT.AUDIO_FRAME, event => {
889
+ * console.log(event.data)
890
+ * });
891
+ *
892
+ */
893
+ readonly AUDIO_FRAME: 'audio-frame';
884
894
  /**
885
895
  * @description Network quality statistics data event, which starts to be counted after entering the room and triggers every two seconds. This data reflects the network quality of your local uplink and downlink.
886
896
  * - The uplink network quality (uplinkNetworkQuality) refers to the network situation of uploading local streams (uplink connection network quality from SDK to Tencent Cloud)
@@ -1156,6 +1166,9 @@ export declare interface TRTCEventTypes {
1156
1166
  volume: number;
1157
1167
  }[];
1158
1168
  }];
1169
+ [TRTCEvent.AUDIO_FRAME]: [{
1170
+ data: Float32Array;
1171
+ }];
1159
1172
  [TRTCEvent.NETWORK_QUALITY]: [NetworkQuality];
1160
1173
  [TRTCEvent.CONNECTION_STATE_CHANGED]: [{
1161
1174
  prevState: ConnectionState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.9.3-beta.6",
3
+ "version": "5.10.0-beta.2",
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.9.3-beta.6",
3
+ "version": "5.10.0-beta.2",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/cross-room",
3
- "version": "5.9.3-beta.6",
3
+ "version": "5.10.0-beta.2",
4
4
  "description": "TRTC Web SDK 5.x Cross Room plugin",
5
5
  "main": "./cross-room.esm.js",
6
6
  "module": "./cross-room.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/custom-encryption",
3
- "version": "5.9.3-beta.6",
3
+ "version": "5.10.0-beta.2",
4
4
  "main": "./custom-encryption.esm.js",
5
5
  "module": "./custom-encryption.esm.js",
6
6
  "types": "./custom-encryption.esm.d.ts"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/device-detector",
3
- "version": "5.9.3-beta.6",
3
+ "version": "5.10.0-beta.2",
4
4
  "description": "TRTC Web SDK 5.x device detector plugin",
5
5
  "main": "./device-detector.esm.js",
6
6
  "module": "./device-detector.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/video-decoder",
3
- "version": "5.9.3-beta.6",
3
+ "version": "5.10.0-beta.2",
4
4
  "description": "Video decoder plugin for TRTC",
5
5
  "main": "./video-decoder.esm.js",
6
6
  "module": "./video-decoder.esm.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtc-plugin/basic-beauty",
3
- "version": "5.9.3-beta.6",
3
+ "version": "5.10.0-beta.2",
4
4
  "description": "TRTC Web SDK 5.x basic-beauty plugin",
5
5
  "main": "./basic-beauty.esm.js",
6
6
  "module": "./basic-beauty.esm.js",