Skip to content

Commit 7d18de5

Browse files
authored
release: TRTC Web SDK v5.16.0
2 parents 23ecfa9 + b0bd6e2 commit 7d18de5

31 files changed

Lines changed: 95 additions & 66 deletions

File tree

SDK/assets/audioProcessor-wasm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SDK/assets/debug-dialog.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SDK/index.d.ts

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,35 @@ import { RealtimeTranscriber, StartRealtimeTranscriberOption, StopRealtimeTransc
1414

1515
export { CDNStreamingOptions, DeviceDetectorOptions, VirtualBackgroundOptions, UpdateVirtualBackgroundOptions, WatermarkOptions, BeautyOptions, UpdateBeautyOptions, BasicBeautyOptions, StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOption, SmallStreamAutoSwitcherOptions, VideoMixerOptions, UpdateVideoMixerOptions, StartRealtimeTranscriberOption, StopRealtimeTranscriberOption };
1616
type TRTCPlugin = typeof CrossRoom | typeof CDNStreaming | typeof DeviceDetector | typeof VirtualBackground | typeof Watermark | typeof Beauty | typeof BasicBeauty | typeof CustomEncryption | typeof SmallStreamAutoSwitcher | typeof VideoMixer | typeof Chorus | typeof LEBPlayer | typeof RealtimeTranscriber;
17+
export interface PlaybackQualityStream {
18+
name: string;
19+
userId: string;
20+
streamType?: TRTCStreamType;
21+
bitrate: number;
22+
}
23+
24+
export interface SwitchPlaybackQualityOptions {
25+
quality?: string;
26+
streamList?: PlaybackQualityStream[];
27+
}
1728

1829
export type ExperimentalAPIFunctionMap = {
1930
'enableAudioFrameEvent': EnableAudioFrameEventOptions;
2031
'resumeRemotePlayer': RemotePlayerOptions;
2132
'pauseRemotePlayer': RemotePlayerOptions;
2233
'requestPictureInPicture': RequestPictureInPictureOptions;
2334
'requestFullScreen': RequestFullScreenOptions;
35+
'switchPlaybackQuality': SwitchPlaybackQualityOptions;
36+
'preconnect': PreconnectParams;
2437
}
2538

2639
export interface RequestPictureInPictureOptions { enable: boolean }
2740
export interface RequestFullScreenOptions { enable: boolean }
2841
export interface RemotePlayerOptions { userId: string, streamType?: TRTCStreamType }
42+
interface EnablePreconnectParams { enable: true; userId: string; userSig: string; sdkAppId: number; }
43+
interface ClosePreconnectParams { enable: false; userId?: never; userSig?: never; sdkAppId?: never;
44+
}
45+
export type PreconnectParams = EnablePreconnectParams | ClosePreconnectParams;
2946

3047
export declare type PluginStartOptionsMap = {
3148
'AudioMixer': AudioMixerOptions;
@@ -367,6 +384,7 @@ export interface AudioProfile { sampleRate: number, channelCount: number, bitrat
367384
export declare interface LocalVideoConfig {
368385
view?: string | HTMLElement | HTMLElement[] | null;
369386
publish?: boolean;
387+
forcePublish?: boolean;
370388
mute?: boolean | string;
371389
option?: {
372390
cameraId?: string;
@@ -443,6 +461,7 @@ export declare interface ScreenShareConfig {
443461
videoTrack?: MediaStreamTrack;
444462
captureElement?: HTMLElement;
445463
preferDisplaySurface?: 'current-tab' | 'tab' | 'window' | 'monitor';
464+
selfBrowserSurface?: 'include' | 'exclude';
446465
qosPreference?: typeof TRTCType.QOS_PREFERENCE_SMOOTH | typeof TRTCType.QOS_PREFERENCE_CLEAR;
447466
};
448467
}
@@ -477,7 +496,8 @@ export declare interface StopRemoteVideoConfig {
477496
}
478497
export declare interface LocalAudioConfig {
479498
publish?: boolean;
480-
mute?: boolean;
499+
mute?: boolean | 'microphone';
500+
muteKeepVolumeDetection?: boolean;
481501
option?: {
482502
microphoneId?: string;
483503
profile?: keyof typeof audioProfileMap;
@@ -490,7 +510,6 @@ export declare interface LocalAudioConfig {
490510
};
491511
}
492512
export declare interface UpdateLocalAudioConfig extends LocalAudioConfig {
493-
mute?: boolean;
494513
option?: {
495514
microphoneId?: string;
496515
audioTrack?: MediaStreamTrack;
@@ -777,13 +796,15 @@ export declare interface RemoteStatistic {
777796
audio: {
778797
bitrate: number;
779798
audioLevel: number;
799+
jitterBufferDelay: number;
780800
};
781801
video: {
782802
width: number;
783803
height: number;
784804
frameRate: number;
785805
bitrate: number;
786806
videoType: TRTCVideoType;
807+
jitterBufferDelay: number;
787808
}[];
788809
userId: string;
789810
}

SDK/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "trtc-sdk-v5",
3-
"version": "5.15.2",
3+
"version": "5.16.0",
44
"description": "Tencent Cloud RTC SDK for Web",
55
"main": "trtc.js",
66
"types": "index.d.ts",
77
"dependencies": {
8-
"webrtc-adapter": "^8.2.3"
8+
"webrtc-adapter": "^9.0.4"
99
},
1010
"keywords": [
1111
"webrtc",

SDK/plugins/cdn-streaming/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rtc-plugin/cdn-streaming",
3-
"version": "5.15.2",
3+
"version": "5.16.0",
44
"description": "TRTC Web SDK 5.x CDN streaming plugin",
55
"main": "./cdn-streaming.esm.js",
66
"module": "./cdn-streaming.esm.js",

SDK/plugins/chorus/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rtc-plugin/chorus",
3-
"version": "5.15.2",
3+
"version": "5.16.0",
44
"description": "TRTC Web SDK 5.x Chorus plugin",
55
"main": "./chorus.esm.js",
66
"module": "./chorus.esm.js",

SDK/plugins/cross-room/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rtc-plugin/cross-room",
3-
"version": "5.15.2",
3+
"version": "5.16.0",
44
"description": "TRTC Web SDK 5.x Cross Room plugin",
55
"main": "./cross-room.esm.js",
66
"module": "./cross-room.esm.js",

SDK/plugins/custom-encryption/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rtc-plugin/custom-encryption",
3-
"version": "5.15.2",
3+
"version": "5.16.0",
44
"main": "./custom-encryption.esm.js",
55
"module": "./custom-encryption.esm.js",
66
"types": "./custom-encryption.esm.d.ts"

SDK/plugins/device-detector/device-detector.esm.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SDK/plugins/device-detector/device-detector.umd.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)