@@ -14,18 +14,35 @@ import { RealtimeTranscriber, StartRealtimeTranscriberOption, StopRealtimeTransc
1414
1515export { CDNStreamingOptions , DeviceDetectorOptions , VirtualBackgroundOptions , UpdateVirtualBackgroundOptions , WatermarkOptions , BeautyOptions , UpdateBeautyOptions , BasicBeautyOptions , StartCrossRoomOption , UpdateCrossRoomOption , StopCrossRoomOption , SmallStreamAutoSwitcherOptions , VideoMixerOptions , UpdateVideoMixerOptions , StartRealtimeTranscriberOption , StopRealtimeTranscriberOption } ;
1616type 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
1829export 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
2639export interface RequestPictureInPictureOptions { enable : boolean }
2740export interface RequestFullScreenOptions { enable : boolean }
2841export 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
3047export declare type PluginStartOptionsMap = {
3148 'AudioMixer' : AudioMixerOptions ;
@@ -367,6 +384,7 @@ export interface AudioProfile { sampleRate: number, channelCount: number, bitrat
367384export 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}
478497export 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}
492512export 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}
0 commit comments