@@ -10,15 +10,21 @@ import { VideoMixerOptions, UpdateVideoMixerOptions, VideoMixer } from './plugin
1010import { SmallStreamAutoSwitcher , SmallStreamAutoSwitcherOptions } from './plugins/small-stream-auto-switcher' ;
1111import { Chorus , StartChorusOption , UpdateChorusOption } from './plugins/chorus' ;
1212import { 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 ;
1618export 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 }
2228export interface RemotePlayerOptions { userId : string , streamType ?: TRTCStreamType }
2329
2430export 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
4350export 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
7886export declare class RtcError extends Error implements RTCErrorInterface {
@@ -336,12 +344,11 @@ export declare const enum BannedReason {
336344}
337345
338346export 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-
345352export 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 ;
0 commit comments