Skip to content

Commit 23ecfa9

Browse files
authored
release: TRTC Web SDK v5.15.1
2 parents a1dc485 + 6784ef3 commit 23ecfa9

26 files changed

Lines changed: 72 additions & 65 deletions

File tree

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: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@ import { VideoMixerOptions, UpdateVideoMixerOptions, VideoMixer } from './plugin
1010
import { SmallStreamAutoSwitcher, SmallStreamAutoSwitcherOptions } from './plugins/small-stream-auto-switcher';
1111
import { Chorus, StartChorusOption, UpdateChorusOption } from './plugins/chorus';
1212
import { LEBPlayer, StartLEBPlayerOption, UpdateLEBPlayerOption } from './plugins/lebplayer';
13+
import { RealtimeTranscriber, StartRealtimeTranscriberOption, StopRealtimeTranscriberOption } from './plugins/realtime-transcriber';
14+
15+
export { CDNStreamingOptions, DeviceDetectorOptions, VirtualBackgroundOptions, UpdateVirtualBackgroundOptions, WatermarkOptions, BeautyOptions, UpdateBeautyOptions, BasicBeautyOptions, StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOption, SmallStreamAutoSwitcherOptions, VideoMixerOptions, UpdateVideoMixerOptions, StartRealtimeTranscriberOption, StopRealtimeTranscriberOption };
16+
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;
1317

14-
export { CDNStreamingOptions, DeviceDetectorOptions, VirtualBackgroundOptions, UpdateVirtualBackgroundOptions, WatermarkOptions, BeautyOptions, UpdateBeautyOptions, BasicBeautyOptions, StartCrossRoomOption, UpdateCrossRoomOption, StopCrossRoomOption, SmallStreamAutoSwitcherOptions, VideoMixerOptions, UpdateVideoMixerOptions };
15-
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;
1618
export type ExperimentalAPIFunctionMap = {
1719
'enableAudioFrameEvent': EnableAudioFrameEventOptions;
1820
'resumeRemotePlayer': RemotePlayerOptions;
1921
'pauseRemotePlayer': RemotePlayerOptions;
22+
'requestPictureInPicture': RequestPictureInPictureOptions;
23+
'requestFullScreen': RequestFullScreenOptions;
2024
}
2125

26+
export interface RequestPictureInPictureOptions { enable: boolean }
27+
export interface RequestFullScreenOptions { enable: boolean }
2228
export interface RemotePlayerOptions { userId: string, streamType?: TRTCStreamType }
2329

2430
export declare type PluginStartOptionsMap = {
@@ -38,6 +44,7 @@ export declare type PluginStartOptionsMap = {
3844
'AudioProcessor': InitAudioProcessorOptions;
3945
'Chorus': StartChorusOption;
4046
'LEBPlayer': StartLEBPlayerOption;
47+
'RealtimeTranscriber': StartRealtimeTranscriberOption;
4148
};
4249

4350
export declare type PluginUpdateOptionsMap = {
@@ -73,6 +80,7 @@ export declare type PluginStopOptionsMap = {
7380
'CustomEncryption': undefined;
7481
'Chorus': undefined;
7582
'LEBPlayer': undefined;
83+
'RealtimeTranscriber': StopRealtimeTranscriberOption;
7684
};
7785

7886
export declare class RtcError extends Error implements RTCErrorInterface {
@@ -336,12 +344,11 @@ export declare const enum BannedReason {
336344
}
337345

338346
export declare const enum PEER_LEAVE_REASON {
339-
NORMAL_LEAVE = 'normal leave',
340-
TIMEOUT_LEAVE = 'timeout leave',
341-
KICK = 'kick',
342-
ROLE_CHANGE = 'role change'
347+
NORMAL_LEAVE = 0,
348+
TIMEOUT_LEAVE = 1,
349+
KICK = 2,
350+
ROLE_CHANGE = 3
343351
}
344-
345352
export declare type PluginWithAssets = {
346353
plugin: TRTCPlugin;
347354
assetsPath?: string;
@@ -1360,7 +1367,7 @@ export declare interface TRTCEventTypes {
13601367
}];
13611368
[TRTCEvent.REMOTE_USER_EXIT]: [{
13621369
userId: string;
1363-
reason?: keyof typeof PEER_LEAVE_REASON;
1370+
reason?: PEER_LEAVE_REASON;
13641371
}];
13651372
[TRTCEvent.REMOTE_AUDIO_AVAILABLE]: [{
13661373
userId: string;

SDK/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "trtc-sdk-v5",
3-
"version": "5.15.0",
3+
"version": "5.15.2",
44
"description": "Tencent Cloud RTC SDK for Web",
55
"main": "trtc.js",
66
"types": "index.d.ts",

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.0",
3+
"version": "5.15.2",
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.0",
3+
"version": "5.15.2",
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.0",
3+
"version": "5.15.2",
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.0",
3+
"version": "5.15.2",
44
"main": "./custom-encryption.esm.js",
55
"module": "./custom-encryption.esm.js",
66
"types": "./custom-encryption.esm.d.ts"

SDK/plugins/device-detector/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/device-detector",
3-
"version": "5.15.0",
3+
"version": "5.15.2",
44
"description": "TRTC Web SDK 5.x device detector plugin",
55
"main": "./device-detector.esm.js",
66
"module": "./device-detector.esm.js",

SDK/plugins/lebplayer/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/lebplayer",
3-
"version": "5.15.0",
3+
"version": "5.15.2",
44
"description": "TRTC Web SDK 5.x LEBPlayer plugin",
55
"main": "./lebplayer.esm.js",
66
"module": "./lebplayer.esm.js",

SDK/plugins/realtime-transcriber/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/realtime-transcriber",
3-
"version": "5.15.0",
3+
"version": "5.15.2",
44
"description": "TRTC Web SDK 5.x Realtime Transcriber plugin",
55
"main": "./realtime-transcriber.esm.js",
66
"module": "./realtime-transcriber.esm.js",

0 commit comments

Comments
 (0)