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 +18 -5
- package/package.json +1 -1
- package/plugins/cdn-streaming/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/video-decoder/package.json +1 -1
- package/plugins/video-effect/basic-beauty/package.json +1 -1
- package/plugins/video-effect/beauty/beauty.esm.js +1 -1
- package/plugins/video-effect/beauty/beauty.umd.js +1 -1
- package/plugins/video-effect/beauty/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 +27 -27
- package/trtc.js +1 -1
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