quickvo-sdk-js 0.8.3 → 0.9.1

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.
@@ -0,0 +1,154 @@
1
+ interface Options {
2
+ /**
3
+ * 调试模式
4
+ */
5
+ debug?: boolean;
6
+ }
7
+ interface Task<T> {
8
+ /**
9
+ * 任务唯一标识
10
+ */
11
+ key: string;
12
+ /**
13
+ * 任务描述
14
+ */
15
+ describe: string;
16
+ /**
17
+ * 严格模式
18
+ * @description 如果开启 则不自动清除该任务 需要由外部调用 taskQueue.clear([task.key]) 来清除
19
+ * @description 如果关闭 则无论任务执行的结果 只要该任务符合并且执行过一次则自动销毁
20
+ */
21
+ strict: boolean;
22
+ /**
23
+ * 任务执行条件 (当所有条件均为true时 该任务才执行)
24
+ */
25
+ conditionKeys: T[];
26
+ /**
27
+ * 是否正在运行
28
+ */
29
+ runing: boolean;
30
+ /**
31
+ * 任务函数
32
+ */
33
+ func: () => Promise<unknown>;
34
+ /**
35
+ * 当前任务是否符合执行条件
36
+ */
37
+ checkAccord: () => boolean;
38
+ /**
39
+ * 任务完成
40
+ */
41
+ success: (_e: any) => void;
42
+ /**
43
+ * 任务失败
44
+ */
45
+ fail: (_e: any) => void;
46
+ /**
47
+ * 任务结束
48
+ */
49
+ complete: () => void;
50
+ /**
51
+ * 执行任务
52
+ */
53
+ run: () => Promise<void>;
54
+ /**
55
+ * 重试任务
56
+ */
57
+ retry: () => Promise<void>;
58
+ /**
59
+ * 清除任务
60
+ */
61
+ clear: () => void;
62
+ }
63
+ interface CreateTask<T> {
64
+ /**
65
+ * 任务描述
66
+ */
67
+ describe?: string;
68
+ /**
69
+ * 严格模式
70
+ * @description 如果开启 则不自动清除该任务 需要由外部调用 taskQueue.clear([task.key]) 来清除
71
+ * @description 如果关闭 则无论任务执行的结果 只要该任务符合并且执行过一次则自动销毁
72
+ */
73
+ strict?: boolean;
74
+ /**
75
+ * 任务超时时间(ms) 任务超时也属于任务执行结果
76
+ */
77
+ timeout?: number;
78
+ /**
79
+ * 任务执行条件 (当所有条件均为true时 该任务才执行)
80
+ */
81
+ conditionKeys: T[];
82
+ /**
83
+ * 任务函数
84
+ */
85
+ func: () => Promise<unknown>;
86
+ /**
87
+ * 任务完成
88
+ */
89
+ success?: (_e: any) => void;
90
+ /**
91
+ * 任务失败
92
+ */
93
+ fail?: (_e: any) => void;
94
+ /**
95
+ * 任务结束
96
+ */
97
+ complete?: () => void;
98
+ }
99
+ export declare class PrTaskQueue<T extends string> {
100
+ #private;
101
+ /**
102
+ * 初始化条件
103
+ * @example const taskQueue = new PrTaskQueue(['login','isAdmin'])
104
+ * @param conditionKeys 条件keys string[]
105
+ */
106
+ constructor(conditionKeys: T[], _options?: Options);
107
+ /**
108
+ * 设置条件
109
+ * @param conditionKey 条件名
110
+ * @param accord 条件状态
111
+ */
112
+ setCondition: (conditionKey: T, accord: boolean) => Promise<void>;
113
+ /**
114
+ * 创建任务
115
+ * @param options.describe 描述信息
116
+ * @param options.conditionKeys 执行条件 (所有条件符合时才执行该任务)
117
+ * @param options.func 任务函数
118
+ */
119
+ createTask: (options: CreateTask<T>) => Promise<{
120
+ key: string;
121
+ describe: string;
122
+ strict: boolean;
123
+ conditionKeys: T[];
124
+ runing: boolean;
125
+ func: () => Promise<unknown>;
126
+ checkAccord: () => boolean;
127
+ success: (_e: any) => void;
128
+ fail: (_e: any) => void;
129
+ complete: () => void;
130
+ run: () => Promise<void>;
131
+ retry: () => Promise<void>;
132
+ clear: () => void;
133
+ }>;
134
+ /**
135
+ * 尝试执行任务
136
+ */
137
+ executeTasks: () => Promise<void>;
138
+ /**
139
+ * 清理任务
140
+ * @param taskKey 任务keys
141
+ */
142
+ clear: (taskKeys?: string[]) => void;
143
+ /**
144
+ * 查询所有条件当前状态
145
+ */
146
+ getConditions: () => {
147
+ [k: string]: boolean;
148
+ };
149
+ /**
150
+ * 查询所有待执行任务
151
+ */
152
+ getTasks: () => Map<String, Task<T>>;
153
+ }
154
+ export {};
@@ -9,10 +9,11 @@ type Options = QuickOptions & RoomOptions & CallsWebSocketOptions & {
9
9
  export declare class RoomBase {
10
10
  #private;
11
11
  options: Options;
12
+ sdk_service_version: string;
12
13
  prohibitNotify: boolean;
13
14
  isEarly: boolean;
14
15
  isInRoom: boolean;
15
- taskQueue: PrTaskQueue<"closeTrack" | "subscribe" | "joinRoom" | "createWs" | "createSession" | "ice" | "createTrack">;
16
+ taskQueue: PrTaskQueue<"closeTrack" | "renegotiate" | "subscribe" | "publish" | "joinRoom" | "createWs" | "createSession" | "ice" | "createTrack">;
16
17
  roomState: K_roomState;
17
18
  createAt: number;
18
19
  cwsIns: CallsWebSocket;
@@ -29,13 +30,13 @@ export declare class RoomBase {
29
30
  };
30
31
  constructor(options: QuickOptions);
31
32
  /**
32
- * 提交日志
33
+ * reportLogs
33
34
  */
34
35
  reportLogs: (_type: Report_Log_Type, describe?: string) => void;
35
36
  initPhoneyStreams: (audioContext: AudioContext) => void;
36
37
  getPhoneyStreams: (mediaType: K_mediaType) => MediaStream;
37
38
  /**
38
- * 获取房间信息
39
+ * getRoomInfo
39
40
  */
40
41
  getRoomInfo: () => {
41
42
  roomState: string;
@@ -44,6 +45,7 @@ export declare class RoomBase {
44
45
  url?: string;
45
46
  logUrl?: string;
46
47
  debug?: boolean;
48
+ reportErr?: boolean;
47
49
  callStrategy?: import('../enums/callStrategy').K_callStrategy;
48
50
  sdkToken?: string;
49
51
  roomId: string;
@@ -54,19 +56,19 @@ export declare class RoomBase {
54
56
  earlyId?: string;
55
57
  };
56
58
  /**
57
- * 设置房间状态
59
+ * setRoomState
58
60
  */
59
61
  setRoomState: (state: K_roomState) => void;
60
62
  /**
61
- * 设置SDK属性
63
+ * setOptions
62
64
  */
63
65
  setOptions: (options: Partial<Options>) => Promise<void>;
64
66
  /**
65
- * 停止轨道
67
+ * stopStream
66
68
  */
67
69
  stopStream: (stream: MediaStream) => Promise<void>;
68
70
  /**
69
- * 获取媒体设备错误信息
71
+ * getMediaDevicesErrInfo
70
72
  */
71
73
  getMediaDevicesErrInfo: () => Promise<{
72
74
  microphoneCamera_audio: string;
@@ -75,11 +77,11 @@ export declare class RoomBase {
75
77
  screenSharing_audio: string;
76
78
  }>;
77
79
  /**
78
- * 获取MediaKey
80
+ * getUserMediaKey
79
81
  */
80
82
  getUserMediaKey: (userId: string, mediaType: string) => string;
81
83
  /**
82
- * 获取 CallAction map
84
+ * getCallActionMap
83
85
  */
84
86
  getCallActionMap: (callAction?: number) => {
85
87
  microphoneCamera_audio: boolean;
@@ -88,24 +90,21 @@ export declare class RoomBase {
88
90
  screenSharing_audio: boolean;
89
91
  };
90
92
  /**
91
- * 获取音量
93
+ * getAverageVolume
92
94
  */
93
95
  getAverageVolume: (analyser: AnalyserNode, dataArray: Uint8Array) => number;
94
96
  /**
95
- * 通过轨道计算当前用户的通话状态
97
+ * getCallAction
96
98
  */
97
99
  getCallAction: (tracks: UserTrack[]) => Promise<number>;
98
100
  /**
99
- * 获取指定轨道的名称数组
100
- * @param tracks 轨道
101
+ * getTrackNamesFormTracks
102
+ * @param tracks
101
103
  * @param types number[] = []
102
104
  * @param keyName
103
105
  * @returns string[]
104
106
  */
105
107
  getTrackNamesFormTracks: (tracks: any[], types?: number[], keyName?: string) => string[];
106
- /**
107
- * 处理为应用层数据
108
- */
109
108
  usersFilter: (users: RoomUser[]) => RoomUser[];
110
109
  }
111
110
  export {};
@@ -3,56 +3,56 @@ import { QuickOptions, RoomOptions, RoomUser, Streams } from '../types';
3
3
  import { RoomPeer } from './RoomPeer';
4
4
  export declare class RoomCalls extends RoomPeer {
5
5
  #private;
6
- sdk_service_version: string;
7
6
  constructor(options: QuickOptions);
8
7
  /**
9
- * 预连接
10
- * @param mediaTypes MediaType[]
11
- * @example quickvo.earlyConnect(['microphoneCamera_audio', 'microphoneCamera_video'])
12
- */
13
- earlyConnect: (mediaTypes?: K_mediaType[]) => void;
14
- /**
15
- * 设置本地流
8
+ * setLocalStream
16
9
  * @param mediaType MediaType
17
- * @param active 激活状态
10
+ * @param active boolean
18
11
  * @example quickvo.setLocalStream('microphoneCamera_audio', false)
19
12
  * @example quickvo.setLocalStream(['microphoneCamera_audio', 'microphoneCamera_video'], false)
20
13
  * @returns Promise<Streams>
21
14
  */
22
15
  setLocalStream: (mediaTypes: K_mediaType[] | K_mediaType, active: boolean) => Promise<Streams>;
23
16
  /**
24
- * 设置正在使用的媒体设备
25
- * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
26
- * @param deviceId 设备ID
17
+ * setMediaDeviceKind
18
+ * @param mediaDeviceKind "audioinput" | "audiooutput" | "videoinput"
19
+ * @param deviceId string
27
20
  */
28
21
  setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => Promise<boolean | Streams>;
29
22
  /**
30
- * 改变屏幕共享流
31
- * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
32
- * @param deviceId 设备ID
23
+ * changeScreenSharing
24
+ * @param mediaDeviceKind "audioinput" | "audiooutput" | "videoinput"
25
+ * @param deviceId string
33
26
  */
34
27
  changeScreenSharing: (mediaTypes: ("screenSharing_video" | "screenSharing_audio")[]) => Promise<void>;
28
+ createSession: () => Promise<unknown>;
35
29
  /**
36
- * 加入房间
30
+ * earlyConnect
31
+ * @param mediaTypes MediaType[]
32
+ * @example quickvo.earlyConnect(['microphoneCamera_audio', 'microphoneCamera_video'])
33
+ */
34
+ earlyConnect: (mediaTypes?: K_mediaType[]) => void;
35
+ /**
36
+ * joinRoom
37
37
  * @param roomOptions RoomOptions
38
38
  * @example quickvo.joinRoom({ userId: '', roomId: '', sdkToken: '', callType: '1' , newPublishAutoSubscribe: true })
39
39
  * @returns Promise<boolean>
40
40
  */
41
41
  joinRoom: (roomOptions: RoomOptions) => Promise<RoomUser[]>;
42
42
  /**
43
- * 退出房间
43
+ * quitRoom
44
44
  * @example quickvo.quitRoom()
45
45
  * @returns Promise<boolean>
46
46
  */
47
47
  quitRoom: () => Promise<boolean>;
48
48
  /**
49
- * 退出房间 不断开连接
49
+ * quitRoom and continuously open the connection
50
50
  * @example quickvo.quitRoomEx()
51
51
  * @returns Promise<boolean>
52
52
  */
53
53
  quitRoomEx: () => Promise<boolean>;
54
54
  /**
55
- * 同步房间信息
55
+ * syncRoomInfo
56
56
  * @example quickvo.syncRoomInfo()
57
57
  */
58
58
  syncRoomInfo: () => Promise<RoomUser[]>;
@@ -64,43 +64,46 @@ export declare class RoomCalls extends RoomPeer {
64
64
  */
65
65
  publish: (mediaTypes: K_mediaType[]) => Promise<RoomUser>;
66
66
  /**
67
- * 停止发布流
67
+ * stopPublish
68
68
  * @param trackNames string[] = []
69
69
  * @example quickvo.stopPublish(['microphoneCamera_audio'])
70
70
  * @returns Promise<RoomUser>
71
71
  */
72
72
  stopPublish: (mediaTypes?: K_mediaType[]) => Promise<RoomUser>;
73
73
  /**
74
- * 订阅流
75
- * @param trackNames 轨道名称
76
- * @param count 订阅失败重试次数
74
+ * subscribe
75
+ * @param trackNames strig[]
76
+ * @param count number
77
77
  * @example quickvo.subscribe(['trackName1','trackName2'])
78
78
  * @returns Promise<RoomUser[]>
79
79
  */
80
- subscribe: (trackNames?: string[], count?: number) => Promise<RoomUser[]>;
80
+ subscribe: (trackNames?: string[], count?: number) => Promise<{
81
+ users: RoomUser[];
82
+ detail: {
83
+ target: string[];
84
+ success: string[];
85
+ fail: string[];
86
+ };
87
+ }>;
81
88
  /**
82
- * 协商流
89
+ * renegotiate
83
90
  */
84
91
  renegotiate: () => Promise<unknown>;
85
92
  /**
86
- * 停止订阅流
93
+ * stopSubscribe
87
94
  * @param trackNames string[] = []
88
95
  * @example quickvo.subscribe(['trackName1'])
89
96
  */
90
97
  stopSubscribe: (trackNames?: string[]) => Promise<boolean>;
91
98
  /**
92
- * 冻结轨道
93
- * @param mediaTypes MediaType[] 轨道类型
94
- * @param enabled 是否冻结
99
+ * inactiveTracks
100
+ * @param mediaTypes MediaType[]
101
+ * @param enabled boolean
95
102
  * @example quickvo.inactiveTracks(['microphoneCamera_audio'], false)
96
103
  */
97
104
  inactiveTracks: (mediaTypes: K_mediaType[], enabled: boolean) => Promise<boolean>;
98
- /**
99
- * 远端调试
100
- */
101
105
  debugger: () => Promise<any>;
102
- /**
103
- * 清除缓存
104
- */
105
106
  shutdown: () => Promise<any>;
107
+ initHeartbeat: () => void;
108
+ stopHeartbeat: () => void;
106
109
  }
@@ -8,109 +8,109 @@ export declare class RoomMedias extends RoomBase {
8
8
  localStreamsActionMap: Map<K_mediaType, Boolean>;
9
9
  constructor(options: QuickOptions);
10
10
  /**
11
- * 播放所有音频
11
+ * resume
12
12
  */
13
13
  resume: () => void;
14
14
  /**
15
- * 房间所有用户所有媒体流变化
15
+ * emitNotifyUpdateUsersStreams
16
16
  */
17
17
  emitNotifyUpdateUsersStreams: (notifys: Array<{
18
18
  userId: string;
19
19
  updateStreams: { [key in K_mediaType]?: boolean; };
20
20
  }>) => Promise<void>;
21
21
  /**
22
- * 初始化用户媒体上下文
22
+ * initUserMediaStreamContext
23
23
  */
24
24
  initUserMediaStreamContext: (userId: string, mediaType: K_mediaType, stream: MediaStream) => Promise<void>;
25
25
  /**
26
- * 获取用户媒体流上下文
26
+ * getUserMediaStreamContext
27
27
  */
28
28
  getUserMediaStreamContext: (userId: string, mediaType: K_mediaType) => AudioMediaContext | VideoMediaContext | undefined;
29
29
  /**
30
- * 获取用户音频媒体流上下文
30
+ * getUserAudioMediaStreamContext
31
31
  */
32
32
  getUserAudioMediaStreamContext: (userId: string, mediaType: "microphoneCamera_audio" | "screenSharing_audio") => AudioMediaContext;
33
33
  /**
34
- * 删除用户媒体流上下文
34
+ * removeUserMediaStreamContext
35
35
  */
36
36
  removeUserMediaStreamContext: (userId: string, mediaType: K_mediaType) => void;
37
37
  /**
38
- * 获取某个用户的某个数据流
38
+ * getUserStream
39
39
  */
40
40
  getUserStream: (userId: string, mediaType: K_mediaType) => MediaStream;
41
41
  /**
42
- * 获取某个用户的某些数据流
42
+ * getUserStreams
43
43
  */
44
44
  getUserStreams: (userId: string, mediaTypes?: K_mediaType[]) => Streams;
45
45
  /**
46
- * 删除某个用户的某些数据流
46
+ * removeUserStreams
47
47
  */
48
48
  removeUserStreams: (userId: string, mediaTypes?: K_mediaType[]) => Promise<void>;
49
49
  /**
50
- * 清除所有媒体流使用
50
+ * clearUserStreams
51
51
  */
52
52
  clearUserStreams: () => void;
53
53
  /**
54
- * 设置轨道媒体参数
54
+ * setMediaTrackConstraints
55
55
  */
56
56
  setMediaTrackConstraints: (mediaType: K_mediaType, constraints: MediaTrackConstraints) => Promise<void>;
57
57
  /**
58
- * 停止本地流
58
+ * stopLocalStreams
59
59
  */
60
60
  stopLocalStreams: (mediaTypes?: K_mediaType[]) => Promise<void>;
61
61
  addLocalStream: (mediaType: K_mediaType, stream: MediaStream) => void;
62
62
  /**
63
- * 初始化本地流
63
+ * initLocalStream
64
64
  */
65
65
  initLocalStream: (mediaType: K_mediaType | "microphoneCamera" | "screenSharing") => Promise<void>;
66
66
  /**
67
- * 获取本地的数据流
67
+ * getLocalStream
68
68
  */
69
69
  getLocalStream: (mediaType: K_mediaType) => MediaStream | undefined;
70
70
  /**
71
- * 获取本地的某些数据流
71
+ * getLocalStreams
72
72
  */
73
73
  getLocalStreams: (mediaTypes?: K_mediaType[]) => Streams;
74
74
  /**
75
- * 获取正在使用的媒体设备ID
76
- * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
77
- * @returns deviceId 设备ID
75
+ * getMediaDeviceKind
76
+ * @param mediaDeviceKind "audioinput" | "audiooutput" | "videoinput"
77
+ * @returns deviceId string
78
78
  */
79
79
  getMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind) => string | undefined;
80
80
  /**
81
- * 更改音频输出
81
+ * changeAudiooutput
82
82
  */
83
83
  changeAudiooutput: () => void;
84
84
  /**
85
- * 设置正在使用的媒体设备
86
- * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
87
- * @param deviceId 设备ID
85
+ * setDeviceKind
86
+ * @param mediaDeviceKind "audioinput" | "audiooutput" | "videoinput"
87
+ * @param deviceId string
88
88
  */
89
89
  setDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => void;
90
90
  /**
91
- * 设置音频输出设备
92
- * @param deviceId 设备ID
91
+ * setAudioOutputDevice
92
+ * @param deviceId string
93
93
  * @returns
94
94
  */
95
95
  setAudioOutputDevice: (deviceId: string) => void;
96
96
  /**
97
- * 获取可用设备
98
- * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
97
+ * getEnumerateDevices
98
+ * @param mediaDeviceKind "audioinput" | "audiooutput" | "videoinput"
99
99
  * @returns MediaDeviceInfo[]
100
100
  */
101
101
  getEnumerateDevices: (mediaDeviceKind: MediaDeviceKind) => Promise<MediaDeviceInfo[]>;
102
102
  /**
103
- * 获取可用音频输入设备
103
+ * getEnumerateAudioinputDevices
104
104
  * @returns MediaDeviceInfo[]
105
105
  */
106
106
  getEnumerateAudioinputDevices: () => Promise<MediaDeviceInfo[]>;
107
107
  /**
108
- * 获取可用音频输出设备
108
+ * getEnumerateAudioOutputDevices
109
109
  * @returns MediaDeviceInfo[]
110
110
  */
111
111
  getEnumerateAudioOutputDevices: () => Promise<MediaDeviceInfo[]>;
112
112
  /**
113
- * 获取可用视频输入设备
113
+ * getEnumerateVideoinputDevices
114
114
  * @returns MediaDeviceInfo[]
115
115
  */
116
116
  getEnumerateVideoinputDevices: () => Promise<MediaDeviceInfo[]>;
@@ -16,11 +16,11 @@ export declare class RoomPeer extends RoomUsers {
16
16
  constructor(options: QuickOptions);
17
17
  initPeer: () => void;
18
18
  /**
19
- * 替换发射器媒体流
19
+ * replaceSenderStream
20
20
  */
21
21
  replaceSenderStream: (mediaTypes: K_mediaType[] | undefined, isReal: Boolean) => Promise<void>;
22
22
  /**
23
- * 获取发射器轨道信息
23
+ * getSenderTracks
24
24
  */
25
25
  getSenderTracks: (mediaTypes?: K_mediaType[]) => Promise<{
26
26
  type: number;
@@ -30,49 +30,43 @@ export declare class RoomPeer extends RoomUsers {
30
30
  mid: string | null;
31
31
  }[]>;
32
32
  /**
33
- * 添加发射器
33
+ * addSenders
34
34
  */
35
35
  addSenders: (mediaTypes?: K_mediaType[]) => Promise<("microphoneCamera_audio" | "microphoneCamera_video" | "screenSharing_video" | "screenSharing_audio")[]>;
36
36
  /**
37
- * 移除发射器
37
+ * removeSenders
38
38
  */
39
39
  removeSenders: (mediaTypes?: K_mediaType[]) => Promise<void>;
40
40
  /**
41
- * 监听订阅轨道结果
41
+ * onSubscribeUserTracks
42
42
  */
43
43
  onSubscribeUserTracks: (users: any[]) => Promise<unknown>;
44
44
  /**
45
- * 关闭某个用户的某些轨道
45
+ * closeUserTracks
46
46
  */
47
47
  closeUserTracks: (userId: string, closeTracks?: UserTrack[], remove?: boolean) => Promise<void>;
48
48
  createOffer: () => Promise<void>;
49
49
  createAnswer: () => Promise<void>;
50
- /**
51
- * 生成本地sdp
52
- */
53
50
  getSdp: () => string | undefined;
54
- /**
55
- * 设置远程描述协议
56
- */
57
51
  setRemoteDescription: (description: RTCSessionDescriptionInit) => Promise<RTCSessionDescriptionInit>;
58
52
  /**
59
- * 设置通讯策略
53
+ * setCallStrategy
60
54
  * @param callStrategy "fixedPictureQuality" | "qualityPriority" | "fluencyPriority" | "balancedDowngrade"
61
55
  * @param mediaTypes mediaType[] "microphoneCamera_audio" | "microphoneCamera_video" | "screenSharing_video" | "screenSharing_audio"
62
56
  * @example quickvo.setCallStrategy('fixedPictureQuality')
63
57
  */
64
58
  setCallStrategy: (callStrategy: K_callStrategy, mediaTypes?: K_mediaType[]) => Promise<void>;
65
59
  /**
66
- * 设置 RTCRtpSender 参数
60
+ * setRTCRtpSenderParameters
67
61
  * @param parameters RTCRtpSendParameters
68
62
  */
69
63
  setRTCRtpSenderParameters: (parameters: RTCRtpSendParameters) => void;
70
64
  /**
71
- * 获取分析报告
65
+ * getReportsByMid
72
66
  */
73
67
  getReportsByMid: (mids?: string[]) => Promise<any[]>;
74
68
  /**
75
- * 获取房间网络信息
69
+ * getRoomNetwork
76
70
  */
77
71
  getRoomNetwork: () => {
78
72
  inboundBytes: number;
@@ -82,7 +76,7 @@ export declare class RoomPeer extends RoomUsers {
82
76
  jitter: string;
83
77
  };
84
78
  /**
85
- * 获取peer网络情况
79
+ * getPeerNetwork
86
80
  */
87
81
  getPeerNetwork: () => {
88
82
  inboundBytes: number;
@@ -92,7 +86,7 @@ export declare class RoomPeer extends RoomUsers {
92
86
  jitter: string;
93
87
  };
94
88
  /**
95
- * 停止网络报告分析
89
+ * stopGetPeerStats
96
90
  */
97
91
  stopGetPeerStats: () => void;
98
92
  }