@rongcloud/plugin-call 5.1.3 → 5.2.0
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.
- package/README.md +11 -249
- package/dist/index.d.ts +961 -13
- package/dist/index.esm.js +2589 -15
- package/dist/index.umd.js +6 -15
- package/package.json +13 -21
- package/dist/RCCallClient.d.ts +0 -127
- package/dist/RCCallSession.d.ts +0 -237
- package/dist/enums.d.ts +0 -14
- package/dist/eventEmitter.d.ts +0 -4
- package/dist/helper.d.ts +0 -2
- package/dist/index.js +0 -16
- package/dist/interface.d.ts +0 -320
- package/dist/timer.d.ts +0 -12
- package/dist/utils.d.ts +0 -9
- package/dist/validation.d.ts +0 -15
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,963 @@
|
|
|
1
|
-
|
|
2
|
-
* RCCall - v5.1.3
|
|
3
|
-
* CommitId - c1ec87082611a289263c27c340ee414ee9e60ba8
|
|
4
|
-
* Fri Apr 21 2023 12:01:49 GMT+0800 (China Standard Time)
|
|
5
|
-
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
|
-
*/
|
|
7
|
-
import { ILogger, ConversationType, RTCJoinType, LogLevel, RTCPluginContext, IRuntime, BasicLogger, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
|
|
8
|
-
import { RCCallStateMachine, RCCallErrorCode, IInviteOptions, RCCallMediaType, IUserData, RCCallUserState, RCCallSessionState, IEndSummary, IOfflineRecord, RCCallLanguage, RCCallEndReason, IInvitedUsers } from '@rongcloud/plugin-call-engine';
|
|
9
|
-
export { IEndSummary, IInvitedUsers, IOfflineRecord, ISenderInfo, RCCallEndReason, RCCallErrorCode, RCCallLanguage, RCCallMediaType, RCCallSessionState, RCCallUserState } from '@rongcloud/plugin-call-engine';
|
|
1
|
+
import { ConversationType, IReceivedMessage, EventEmitter, RTCPluginContext, IRuntime, ILogger, RTCJoinType, LogLevel, BasicLogger, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
|
|
10
2
|
import { RCRTCClient, IMicphoneAudioProfile, RCTrack, RCRTCCode, IRCRTCStateReport, RCRTCPingResult, RCLocalTrack, ICameraVideoProfile } from '@rongcloud/plugin-rtc';
|
|
11
3
|
export { IRCRTCStateReport } from '@rongcloud/plugin-rtc';
|
|
12
4
|
|
|
5
|
+
/**
|
|
6
|
+
* 错误码,与移动端对齐
|
|
7
|
+
* @description
|
|
8
|
+
* 1. `51000 - 51999` 为 Android 专用段
|
|
9
|
+
* 2. `52000 - 52999` 为 iOS 专用段
|
|
10
|
+
* 3. `53000 - 53199` 为 Web RTC 专用段
|
|
11
|
+
* 4. `53200 - 53499` 为 Web CallLib 专用段
|
|
12
|
+
* * `53200 - 53299` 为 Web CallEngine 专用端
|
|
13
|
+
* * `53300 - 53499` 为 Web Call 专用端
|
|
14
|
+
* 5. `53500 - 53999` 为 Web 保留段
|
|
15
|
+
*/
|
|
16
|
+
declare enum RCCallErrorCode {
|
|
17
|
+
/**
|
|
18
|
+
* 成功
|
|
19
|
+
*/
|
|
20
|
+
SUCCESS = 10000,
|
|
21
|
+
/**
|
|
22
|
+
* 存在未结束的状态机
|
|
23
|
+
*/
|
|
24
|
+
STATE_MACHINE_EXIT = 53200,
|
|
25
|
+
/**
|
|
26
|
+
* 发送 IM 消息失败
|
|
27
|
+
*/
|
|
28
|
+
SEND_MSG_ERROR = 53201,
|
|
29
|
+
/**
|
|
30
|
+
* 被对方加入黑名单
|
|
31
|
+
*/
|
|
32
|
+
REJECTED_BY_BLACKLIST = 53202,
|
|
33
|
+
/**
|
|
34
|
+
* 当前用户不再群组中
|
|
35
|
+
*/
|
|
36
|
+
NOT_IN_GROUP = 53203,
|
|
37
|
+
/**
|
|
38
|
+
* Call 相关
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* 获得本地音频流失败
|
|
42
|
+
*/
|
|
43
|
+
GET_LOCAL_AUDIO_TRACK_ERROR = 53301,
|
|
44
|
+
/**
|
|
45
|
+
* 获得本地视频流失败
|
|
46
|
+
*/
|
|
47
|
+
GET_LOCAL_VIDEO_TRACK_ERROR = 53302,
|
|
48
|
+
/**
|
|
49
|
+
* 获得本地音视频流失败
|
|
50
|
+
*/
|
|
51
|
+
GET_LOCAL_AUDIO_AND_VIDEO_TRACK_ERROR = 53303,
|
|
52
|
+
/**
|
|
53
|
+
* 加入房间失败
|
|
54
|
+
*/
|
|
55
|
+
JOIN_ROOM_ERROR = 53304,
|
|
56
|
+
/**
|
|
57
|
+
* 发布音频失败
|
|
58
|
+
*/
|
|
59
|
+
AUDIO_PUBLISH_ERROR = 53305,
|
|
60
|
+
/**
|
|
61
|
+
* 发布视频失败
|
|
62
|
+
*/
|
|
63
|
+
VIDEO_PUBLISH_ERROR = 53306,
|
|
64
|
+
/**
|
|
65
|
+
* 发布音视频失败
|
|
66
|
+
*/
|
|
67
|
+
AUDIO_AND_VIDEO_PUBLISH_ERROR = 53307,
|
|
68
|
+
/**
|
|
69
|
+
* 查询房间用户信息失败
|
|
70
|
+
*/
|
|
71
|
+
QUERY_JOINED_USER_INFO_ERROR = 53308,
|
|
72
|
+
/**
|
|
73
|
+
* 禁用启用视频时,房间内缺少视频流
|
|
74
|
+
*/
|
|
75
|
+
MISSING_VIDEO_TRACK_ERROR = 53309,
|
|
76
|
+
/**
|
|
77
|
+
* 取消发布视频失败
|
|
78
|
+
*/
|
|
79
|
+
UNPUBLISH_VIDEO_ERROR = 53310,
|
|
80
|
+
/**
|
|
81
|
+
* 会话不是群组
|
|
82
|
+
*/
|
|
83
|
+
CONVERSATION_NOT_GROUP_ERROR = 53311,
|
|
84
|
+
/**
|
|
85
|
+
* 不在room中禁用音视频
|
|
86
|
+
*/
|
|
87
|
+
NOT_IN_ROOM_ERROR = 53312
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 挂断原因
|
|
92
|
+
* @description
|
|
93
|
+
* 根据原有 HangupReason 设计,己方原因与对方原因有相差 10 的差距.
|
|
94
|
+
* 现有本地原因取值范围: 1 ~ 10, 远端原因取值范围: 11 ~ 20.
|
|
95
|
+
* 为便于 HangupReason 扩展,保留 100 以内的取值.
|
|
96
|
+
* 需要再次扩展时,己方原因使用: 21 ~ 30, 对应对方原因使用: 31 ~ 40,
|
|
97
|
+
* 以此类推,
|
|
98
|
+
* 己方原因使用: 41 ~ 50, 对方原因使用: 51 ~ 60,
|
|
99
|
+
* 己方原因使用: 61 ~ 70, 对方原因使用: 71 ~ 80,
|
|
100
|
+
* 己方原因使用: 71 ~ 90, 对方原因使用: 91 ~ 100.
|
|
101
|
+
*
|
|
102
|
+
* 各平台独有字段范围
|
|
103
|
+
* Android 201 ~ 299
|
|
104
|
+
* iOS 301 ~ 399
|
|
105
|
+
* Web 401 ~ 499
|
|
106
|
+
* 详细文档:https://gitbook.rongcloud.net/rtc-docs/#/rtc-client/ios/analysis/calllib/HangupReason
|
|
107
|
+
*/
|
|
108
|
+
declare enum RCCallEndReason {
|
|
109
|
+
/**
|
|
110
|
+
* 己方取消已发出的通话请求
|
|
111
|
+
*/
|
|
112
|
+
CANCEL = 1,
|
|
113
|
+
/**
|
|
114
|
+
* 己方拒绝收到的通话请求
|
|
115
|
+
*/
|
|
116
|
+
REJECT = 2,
|
|
117
|
+
/**
|
|
118
|
+
* 己方挂断
|
|
119
|
+
*/
|
|
120
|
+
HANGUP = 3,
|
|
121
|
+
/**
|
|
122
|
+
* 己方忙碌
|
|
123
|
+
*/
|
|
124
|
+
BUSY_LINE = 4,
|
|
125
|
+
/**
|
|
126
|
+
* 己方未接听
|
|
127
|
+
*/
|
|
128
|
+
NO_RESPONSE = 5,
|
|
129
|
+
/**
|
|
130
|
+
* 己方不支持当前音视频引擎
|
|
131
|
+
*/
|
|
132
|
+
ENGINE_UNSUPPORTED = 6,
|
|
133
|
+
/**
|
|
134
|
+
* 己方网络错误
|
|
135
|
+
*/
|
|
136
|
+
NETWORK_ERROR = 7,
|
|
137
|
+
/**
|
|
138
|
+
* 己方摄像头资源获取失败,可能是权限原因
|
|
139
|
+
*/
|
|
140
|
+
GET_MEDIA_RESOURCES_ERROR = 8,
|
|
141
|
+
/**
|
|
142
|
+
* 己方资源发布失败
|
|
143
|
+
*/
|
|
144
|
+
PUBLISH_ERROR = 9,
|
|
145
|
+
/**
|
|
146
|
+
* 己方订阅资源失败
|
|
147
|
+
*/
|
|
148
|
+
SUBSCRIBE_ERROR = 10,
|
|
149
|
+
/**
|
|
150
|
+
* 对方取消发出的通话请求
|
|
151
|
+
*/
|
|
152
|
+
REMOTE_CANCEL = 11,
|
|
153
|
+
/**
|
|
154
|
+
* 对方拒绝收到的通话请求
|
|
155
|
+
*/
|
|
156
|
+
REMOTE_REJECT = 12,
|
|
157
|
+
/**
|
|
158
|
+
* 通话过程中对方挂断
|
|
159
|
+
*/
|
|
160
|
+
REMOTE_HANGUP = 13,
|
|
161
|
+
/**
|
|
162
|
+
* 对方忙碌
|
|
163
|
+
*/
|
|
164
|
+
REMOTE_BUSY_LINE = 14,
|
|
165
|
+
/**
|
|
166
|
+
* 对方未接听
|
|
167
|
+
*/
|
|
168
|
+
REMOTE_NO_RESPONSE = 15,
|
|
169
|
+
/**
|
|
170
|
+
* 对方引擎不支持
|
|
171
|
+
*/
|
|
172
|
+
REMOTE_ENGINE_UNSUPPORTED = 16,
|
|
173
|
+
/**
|
|
174
|
+
* 对方网络错误
|
|
175
|
+
*/
|
|
176
|
+
REMOTE_NETWORK_ERROR = 17,
|
|
177
|
+
/**
|
|
178
|
+
* 对方摄像头资源获取失败,可能是权限原因
|
|
179
|
+
*/
|
|
180
|
+
REMOTE_GET_MEDIA_RESOURCE_ERROR = 18,
|
|
181
|
+
/**
|
|
182
|
+
* 远端资源发布失败
|
|
183
|
+
*/
|
|
184
|
+
REMOTE_PUBLISH_ERROR = 19,
|
|
185
|
+
/**
|
|
186
|
+
* 远端订阅资源失败
|
|
187
|
+
*/
|
|
188
|
+
REMOTE_SUBSCRIBE_ERROR = 20,
|
|
189
|
+
/**
|
|
190
|
+
* 己方其他端已加入新通话
|
|
191
|
+
*/
|
|
192
|
+
OTHER_CLIENT_JOINED_CALL = 21,
|
|
193
|
+
/**
|
|
194
|
+
* 己方其他端已在通话中
|
|
195
|
+
*/
|
|
196
|
+
OTHER_CLIENT_IN_CALL = 22,
|
|
197
|
+
/**
|
|
198
|
+
* 己方被禁止通话
|
|
199
|
+
*/
|
|
200
|
+
KICKED_BY_SERVER = 23,
|
|
201
|
+
/**
|
|
202
|
+
* 己方接听系统通话(移动端特有)
|
|
203
|
+
*/
|
|
204
|
+
ACCEPT_SYSTEM_CALL = 24,
|
|
205
|
+
/**
|
|
206
|
+
* 远端其他端已加入新通话
|
|
207
|
+
*/
|
|
208
|
+
REMOTE_OTHER_CLIENT_JOINED_CALL = 31,
|
|
209
|
+
/**
|
|
210
|
+
* 远端其他端已在通话中
|
|
211
|
+
*/
|
|
212
|
+
REMOTE_OTHER_CLIENT_IN_CALL = 32,
|
|
213
|
+
/**
|
|
214
|
+
* 远端被禁止通话
|
|
215
|
+
*/
|
|
216
|
+
REMOTE_KICKED_BY_SERVER = 33,
|
|
217
|
+
/**
|
|
218
|
+
* 远端接听系统通话(移动端特有)
|
|
219
|
+
*/
|
|
220
|
+
REMOTE_ACCEPT_SYSTEM_CALL = 34,
|
|
221
|
+
/**
|
|
222
|
+
* 其他端接听
|
|
223
|
+
*/
|
|
224
|
+
ACCEPT_BY_OTHER_CLIENT = 101,
|
|
225
|
+
/**
|
|
226
|
+
* 其他端挂断
|
|
227
|
+
*/
|
|
228
|
+
HANGUP_BY_OTHER_CLIENT = 102,
|
|
229
|
+
/**
|
|
230
|
+
* 己方被对方加入黑名单
|
|
231
|
+
*/
|
|
232
|
+
ADDED_TO_BLACKLIST = 103,
|
|
233
|
+
/**
|
|
234
|
+
* 音视频服务未开通
|
|
235
|
+
*/
|
|
236
|
+
SERVICE_NOT_OPENED = 104
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* 通话媒体类型
|
|
241
|
+
*/
|
|
242
|
+
declare enum RCCallMediaType {
|
|
243
|
+
/**
|
|
244
|
+
* 音频通话
|
|
245
|
+
*/
|
|
246
|
+
AUDIO = 1,
|
|
247
|
+
/**
|
|
248
|
+
* 视频通话
|
|
249
|
+
*/
|
|
250
|
+
AUDIO_VIDEO = 2
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
declare enum RCCallSessionState {
|
|
254
|
+
/**
|
|
255
|
+
* 等待建立连接
|
|
256
|
+
*/
|
|
257
|
+
WAITING = 0,
|
|
258
|
+
/**
|
|
259
|
+
* 会话维持中
|
|
260
|
+
*/
|
|
261
|
+
KEEPING = 1,
|
|
262
|
+
/**
|
|
263
|
+
* 会话已结束
|
|
264
|
+
*/
|
|
265
|
+
END = 2
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare enum RCCallUserState {
|
|
269
|
+
/**
|
|
270
|
+
* 用户不存在于通话中
|
|
271
|
+
*/
|
|
272
|
+
NONE = 0,
|
|
273
|
+
/**
|
|
274
|
+
* 等待接听
|
|
275
|
+
*/
|
|
276
|
+
WAITING = 1,
|
|
277
|
+
/**
|
|
278
|
+
* 通话中
|
|
279
|
+
*/
|
|
280
|
+
KEEPING = 2
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
interface IEndSummary {
|
|
284
|
+
/**
|
|
285
|
+
* 通话类型
|
|
286
|
+
*/
|
|
287
|
+
conversationType: ConversationType;
|
|
288
|
+
/**
|
|
289
|
+
* 多组织 ID
|
|
290
|
+
*/
|
|
291
|
+
channelId: string;
|
|
292
|
+
/**
|
|
293
|
+
* 目标 ID
|
|
294
|
+
*/
|
|
295
|
+
targetId: string;
|
|
296
|
+
/**
|
|
297
|
+
* 通话媒体类型
|
|
298
|
+
*/
|
|
299
|
+
mediaType: RCCallMediaType;
|
|
300
|
+
/**
|
|
301
|
+
* 通话开始时间戳
|
|
302
|
+
*/
|
|
303
|
+
beginTimestamp: number;
|
|
304
|
+
/**
|
|
305
|
+
* 通话结束时间戳
|
|
306
|
+
*/
|
|
307
|
+
endTimestamp: number;
|
|
308
|
+
/**
|
|
309
|
+
* 通话时间
|
|
310
|
+
*/
|
|
311
|
+
duration: number;
|
|
312
|
+
/**
|
|
313
|
+
* 通话结束原因
|
|
314
|
+
*/
|
|
315
|
+
endReason: RCCallEndReason;
|
|
316
|
+
}
|
|
317
|
+
interface IUserProfile {
|
|
318
|
+
/**
|
|
319
|
+
* 用户名
|
|
320
|
+
*/
|
|
321
|
+
name?: string;
|
|
322
|
+
/**
|
|
323
|
+
* 用户头像地址
|
|
324
|
+
*/
|
|
325
|
+
portraitUri?: string;
|
|
326
|
+
/**
|
|
327
|
+
* user info 中附加信息
|
|
328
|
+
*/
|
|
329
|
+
extra?: string;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* 通话发起者信息
|
|
333
|
+
*/
|
|
334
|
+
interface ISenderInfo extends IUserProfile {
|
|
335
|
+
/**
|
|
336
|
+
* 发起者 userId
|
|
337
|
+
*/
|
|
338
|
+
userId: string;
|
|
339
|
+
}
|
|
340
|
+
interface IUserData extends IUserProfile {
|
|
341
|
+
/**
|
|
342
|
+
* 用户 ID
|
|
343
|
+
*/
|
|
344
|
+
userId: string;
|
|
345
|
+
/**
|
|
346
|
+
* 用户 状态
|
|
347
|
+
*/
|
|
348
|
+
state: RCCallUserState;
|
|
349
|
+
/**
|
|
350
|
+
* 是否是通话发起者
|
|
351
|
+
*/
|
|
352
|
+
isCaller: boolean;
|
|
353
|
+
/**
|
|
354
|
+
* 是否是远端用户
|
|
355
|
+
*/
|
|
356
|
+
isRemote: boolean;
|
|
357
|
+
/**
|
|
358
|
+
* 用户 deviceId
|
|
359
|
+
* 主要用于记录远端的用户的 deviceId, 用于处理多端消息
|
|
360
|
+
*/
|
|
361
|
+
deviceId?: string;
|
|
362
|
+
}
|
|
363
|
+
interface IUserStateChangeInfo {
|
|
364
|
+
/**
|
|
365
|
+
* 用户数据
|
|
366
|
+
*/
|
|
367
|
+
user: IUserData;
|
|
368
|
+
/**
|
|
369
|
+
* 挂断原因( user.state 为 RCCallUserState.NONE 时返回)
|
|
370
|
+
*/
|
|
371
|
+
reason?: RCCallEndReason;
|
|
372
|
+
}
|
|
373
|
+
interface IStateChangeInfo {
|
|
374
|
+
/**
|
|
375
|
+
* 状态
|
|
376
|
+
*/
|
|
377
|
+
state: RCCallSessionState;
|
|
378
|
+
/**
|
|
379
|
+
* state 为 RCCallSessionState.END 时返回
|
|
380
|
+
*/
|
|
381
|
+
reason?: RCCallEndReason;
|
|
382
|
+
}
|
|
383
|
+
declare type IInvitedUsers = ISenderInfo;
|
|
384
|
+
interface IMemberModifyInfo {
|
|
385
|
+
/**
|
|
386
|
+
* 发起者信息
|
|
387
|
+
*/
|
|
388
|
+
sender: ISenderInfo;
|
|
389
|
+
/**
|
|
390
|
+
* 被邀请用户 ID 列表
|
|
391
|
+
*/
|
|
392
|
+
invitedUsers: IInvitedUsers[];
|
|
393
|
+
}
|
|
394
|
+
interface IMediaModifyInfo {
|
|
395
|
+
/**
|
|
396
|
+
* 发起者信息
|
|
397
|
+
*/
|
|
398
|
+
sender: ISenderInfo;
|
|
399
|
+
/**
|
|
400
|
+
* 修改后的媒体类型
|
|
401
|
+
*/
|
|
402
|
+
mediaType: RCCallMediaType;
|
|
403
|
+
}
|
|
404
|
+
interface ICallStateMachineWatchers {
|
|
405
|
+
/**
|
|
406
|
+
* 用户状态变更
|
|
407
|
+
* @param info
|
|
408
|
+
*/
|
|
409
|
+
onUserStateChange: (info: IUserStateChangeInfo) => void;
|
|
410
|
+
/**
|
|
411
|
+
* 房间状态变更
|
|
412
|
+
* @param info
|
|
413
|
+
*/
|
|
414
|
+
onStateChange: (info: IStateChangeInfo) => void;
|
|
415
|
+
/**
|
|
416
|
+
* 收到响铃
|
|
417
|
+
* @param sender 发起用户信息
|
|
418
|
+
*/
|
|
419
|
+
onRinging: (sender: ISenderInfo) => void;
|
|
420
|
+
/**
|
|
421
|
+
* 收到接听
|
|
422
|
+
* @param sender 发起用户信息
|
|
423
|
+
*/
|
|
424
|
+
onAccept: (sender: ISenderInfo) => void;
|
|
425
|
+
/**
|
|
426
|
+
* 收到挂断
|
|
427
|
+
*/
|
|
428
|
+
onHungup: (sender: ISenderInfo, reason: RCCallEndReason) => void;
|
|
429
|
+
/**
|
|
430
|
+
* 收到人员变更
|
|
431
|
+
* @param sender 发起用户信息
|
|
432
|
+
*/
|
|
433
|
+
onMemberModify: (info: IMemberModifyInfo) => void;
|
|
434
|
+
/**
|
|
435
|
+
* 收到通话类型变更
|
|
436
|
+
* @param sender 发起用户信息
|
|
437
|
+
*/
|
|
438
|
+
onMediaModify: (info: IMediaModifyInfo) => void;
|
|
439
|
+
/**
|
|
440
|
+
* 是否跨appkey
|
|
441
|
+
* @param ifCross 是否为跨appkey通信
|
|
442
|
+
*/
|
|
443
|
+
crossAppkey: (ifCross: boolean) => void;
|
|
444
|
+
}
|
|
445
|
+
/**
|
|
446
|
+
* 发送邀请时的可选项
|
|
447
|
+
*/
|
|
448
|
+
interface IInviteOptions {
|
|
449
|
+
/**
|
|
450
|
+
* 消息的扩展信息
|
|
451
|
+
*/
|
|
452
|
+
extra?: string;
|
|
453
|
+
/**
|
|
454
|
+
* 对方显示通知的标题
|
|
455
|
+
*/
|
|
456
|
+
pushTitle?: string;
|
|
457
|
+
/**
|
|
458
|
+
* 对方显示的通知内容
|
|
459
|
+
*/
|
|
460
|
+
pushContent?: string;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* 注释
|
|
465
|
+
* TODO
|
|
466
|
+
*/
|
|
467
|
+
declare enum MsgCallStatus {
|
|
468
|
+
OUTGOING = 1,
|
|
469
|
+
INCOMING = 2,
|
|
470
|
+
RINGING = 3,
|
|
471
|
+
CONNECTED = 4,
|
|
472
|
+
IDLE = 5,
|
|
473
|
+
ACCEPTED = 6
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
interface IOfflineRecord {
|
|
477
|
+
channelId: string;
|
|
478
|
+
conversationType: ConversationType;
|
|
479
|
+
targetId: string;
|
|
480
|
+
mediaType: RCCallMediaType;
|
|
481
|
+
callId: string;
|
|
482
|
+
inviterId: string;
|
|
483
|
+
endReason: RCCallEndReason;
|
|
484
|
+
beginTimestamp: number;
|
|
485
|
+
endTimestamp: number;
|
|
486
|
+
duration: number;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
interface ISendBaseOptions {
|
|
490
|
+
/**
|
|
491
|
+
* 组织 ID
|
|
492
|
+
*/
|
|
493
|
+
channelId: string;
|
|
494
|
+
/**
|
|
495
|
+
* 会话类型
|
|
496
|
+
*/
|
|
497
|
+
conversationType: ConversationType;
|
|
498
|
+
/**
|
|
499
|
+
* 目标 ID (单聊:对方 Id;群聊: 群组 Id)
|
|
500
|
+
*/
|
|
501
|
+
targetId: string;
|
|
502
|
+
}
|
|
503
|
+
interface IExistedUserPofiles {
|
|
504
|
+
/**
|
|
505
|
+
* 用户 ID
|
|
506
|
+
*/
|
|
507
|
+
userId: string;
|
|
508
|
+
/**
|
|
509
|
+
* 通话类型
|
|
510
|
+
*/
|
|
511
|
+
mediaType: RCCallMediaType;
|
|
512
|
+
/**
|
|
513
|
+
* 与移动端一致的通话状态
|
|
514
|
+
*/
|
|
515
|
+
callStatus: MsgCallStatus;
|
|
516
|
+
/**
|
|
517
|
+
* PC 端 mediaId 直接传 userId, mediaId iOS 需要解出来渲染视图用。
|
|
518
|
+
*/
|
|
519
|
+
mediaId?: string;
|
|
520
|
+
}
|
|
521
|
+
interface IMsgListener {
|
|
522
|
+
onInvite?: (msg: IReceivedMessage) => void;
|
|
523
|
+
onRinging?: (msg: IReceivedMessage) => void;
|
|
524
|
+
onAccept?: (msg: IReceivedMessage) => void;
|
|
525
|
+
onMemberModify?: (msg: IReceivedMessage) => void;
|
|
526
|
+
onMediaModify?: (msg: IReceivedMessage) => void;
|
|
527
|
+
onHungup?: (msg: IReceivedMessage) => void;
|
|
528
|
+
sendAccept?: (info: {
|
|
529
|
+
callId: string;
|
|
530
|
+
}) => void;
|
|
531
|
+
onOfflineRecord?: (record: IOfflineRecord) => void;
|
|
532
|
+
}
|
|
533
|
+
interface IInviteMsgOptions extends ISendBaseOptions {
|
|
534
|
+
/**
|
|
535
|
+
* 呼叫 ID( RTC 房间 ID )
|
|
536
|
+
*/
|
|
537
|
+
callId: string;
|
|
538
|
+
/**
|
|
539
|
+
* 通话媒体类型
|
|
540
|
+
*/
|
|
541
|
+
mediaType: RCCallMediaType;
|
|
542
|
+
/**
|
|
543
|
+
* 被邀请人用户 ID 列表
|
|
544
|
+
*/
|
|
545
|
+
inviteUserIds: string[];
|
|
546
|
+
/**
|
|
547
|
+
* 扩展信息
|
|
548
|
+
*/
|
|
549
|
+
extra: string;
|
|
550
|
+
/**
|
|
551
|
+
* 对方显示通知的标题
|
|
552
|
+
*/
|
|
553
|
+
pushTitle?: string;
|
|
554
|
+
/**
|
|
555
|
+
* 对方显示的通知内容
|
|
556
|
+
*/
|
|
557
|
+
pushContent?: string;
|
|
558
|
+
/**
|
|
559
|
+
* 跨appkey参数
|
|
560
|
+
*/
|
|
561
|
+
roomType?: number;
|
|
562
|
+
}
|
|
563
|
+
interface IMemberModifyMsgOptions extends ISendBaseOptions {
|
|
564
|
+
/**
|
|
565
|
+
* 呼叫 ID( RTC 房间 ID )
|
|
566
|
+
*/
|
|
567
|
+
callId: string;
|
|
568
|
+
/**
|
|
569
|
+
* 通话媒体类型
|
|
570
|
+
*/
|
|
571
|
+
mediaType: RCCallMediaType;
|
|
572
|
+
/**
|
|
573
|
+
* 被邀请人用户 ID 列表
|
|
574
|
+
*/
|
|
575
|
+
inviteUserIds: string[];
|
|
576
|
+
/**
|
|
577
|
+
* 获取会话发起者 Id
|
|
578
|
+
*/
|
|
579
|
+
callerId: string;
|
|
580
|
+
/**
|
|
581
|
+
* 当前通话中的所有人,包含未接听用户
|
|
582
|
+
*/
|
|
583
|
+
existedUserPofiles: IExistedUserPofiles[];
|
|
584
|
+
/**
|
|
585
|
+
* 当前通话中的所有人,包含未接听用户
|
|
586
|
+
*/
|
|
587
|
+
directionalUserIdList: string[];
|
|
588
|
+
/**
|
|
589
|
+
* 扩展信息
|
|
590
|
+
*/
|
|
591
|
+
extra: string;
|
|
592
|
+
/**
|
|
593
|
+
* 对方显示通知的标题
|
|
594
|
+
*/
|
|
595
|
+
pushTitle?: string;
|
|
596
|
+
/**
|
|
597
|
+
* 对方显示的通知内容
|
|
598
|
+
*/
|
|
599
|
+
pushContent?: string;
|
|
600
|
+
}
|
|
601
|
+
interface IRingingMsgOptions extends ISendBaseOptions {
|
|
602
|
+
/**
|
|
603
|
+
* 呼叫 ID( RTC 房间 ID )
|
|
604
|
+
*/
|
|
605
|
+
callId: string;
|
|
606
|
+
/**
|
|
607
|
+
* 群呼中需要接收响铃的用户 ID 列表
|
|
608
|
+
*/
|
|
609
|
+
userIds?: string[];
|
|
610
|
+
}
|
|
611
|
+
interface IAcceptMsgOptions extends ISendBaseOptions {
|
|
612
|
+
/**
|
|
613
|
+
* 呼叫 ID( RTC 房间 ID )
|
|
614
|
+
*/
|
|
615
|
+
callId: string;
|
|
616
|
+
/**
|
|
617
|
+
* 通话媒体类型
|
|
618
|
+
*/
|
|
619
|
+
mediaType: RCCallMediaType;
|
|
620
|
+
/**
|
|
621
|
+
* 群呼中需要接收接听消息的用户 ID 列表
|
|
622
|
+
*/
|
|
623
|
+
userIds: string[];
|
|
624
|
+
}
|
|
625
|
+
interface IHungupMsgOptions extends ISendBaseOptions {
|
|
626
|
+
/**
|
|
627
|
+
* 呼叫 ID( RTC 房间 ID )
|
|
628
|
+
*/
|
|
629
|
+
callId: string;
|
|
630
|
+
/**
|
|
631
|
+
* 挂断原因
|
|
632
|
+
*/
|
|
633
|
+
reason: RCCallEndReason;
|
|
634
|
+
/**
|
|
635
|
+
* 群呼中需要接收挂断消息的用户 ID 列表
|
|
636
|
+
*/
|
|
637
|
+
userIds: string[];
|
|
638
|
+
/**
|
|
639
|
+
* 对方显示通知的标题
|
|
640
|
+
*/
|
|
641
|
+
pushTitle?: string;
|
|
642
|
+
/**
|
|
643
|
+
* 对方显示的通知内容
|
|
644
|
+
*/
|
|
645
|
+
pushContent?: string;
|
|
646
|
+
}
|
|
647
|
+
interface IMediaModifyMsgOptions extends ISendBaseOptions {
|
|
648
|
+
/**
|
|
649
|
+
* 呼叫 ID( RTC 房间 ID )
|
|
650
|
+
*/
|
|
651
|
+
callId: string;
|
|
652
|
+
/**
|
|
653
|
+
* 通话媒体类型
|
|
654
|
+
*/
|
|
655
|
+
mediaType: RCCallMediaType;
|
|
656
|
+
/**
|
|
657
|
+
* 群呼中需要媒体变更消息的用户 ID 列表
|
|
658
|
+
*/
|
|
659
|
+
userIds: string[];
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
declare type MsgListenerKeys = keyof IMsgListener;
|
|
663
|
+
/**
|
|
664
|
+
* 消息接收处理: 在线消息、离线消息
|
|
665
|
+
* 发送消息处理: 发送不同类型消息封装
|
|
666
|
+
*/
|
|
667
|
+
declare class CallMessageHandler extends EventEmitter {
|
|
668
|
+
private readonly _context;
|
|
669
|
+
private readonly _runtime;
|
|
670
|
+
private readonly _logger;
|
|
671
|
+
/**
|
|
672
|
+
* 离线消息处理时间间隔
|
|
673
|
+
*/
|
|
674
|
+
private readonly _offlineMsgItv;
|
|
675
|
+
private readonly _getStateMachine;
|
|
676
|
+
private _watchers;
|
|
677
|
+
private _userInfo;
|
|
678
|
+
private _msgBufferList;
|
|
679
|
+
private _hadHandleMsgTimer;
|
|
680
|
+
private _offlineRecorder;
|
|
681
|
+
private _deviceId;
|
|
682
|
+
constructor(_context: RTCPluginContext, _runtime: IRuntime, _logger: ILogger,
|
|
683
|
+
/**
|
|
684
|
+
* 离线消息处理时间间隔
|
|
685
|
+
*/
|
|
686
|
+
_offlineMsgItv: number, _getStateMachine: (callId: string) => RCCallStateMachine | null);
|
|
687
|
+
private _onMessage;
|
|
688
|
+
/**
|
|
689
|
+
* 在线消息抛给状态机处理
|
|
690
|
+
*/
|
|
691
|
+
private _onRecvOnlineCallMsg;
|
|
692
|
+
/**
|
|
693
|
+
* 消息 buffer 列表处理逻辑
|
|
694
|
+
* 1、每 20ms 检查一次 buffer list
|
|
695
|
+
* 2、取出已经延迟 200 的消息列表进行消费 | 无延迟 200ms 内消息直接递归
|
|
696
|
+
* 3、消费分为 离线消息消费逻辑、在线消息消费逻辑,消费后递归
|
|
697
|
+
*/
|
|
698
|
+
private _handleBufferMsgs;
|
|
699
|
+
registerEventListener(listener: IMsgListener): void;
|
|
700
|
+
registerStateMachineEvent(callId: string, funcName: MsgListenerKeys, event: (...args: any[]) => void): void;
|
|
701
|
+
unregisterStateMachineEvent(callId: string): void;
|
|
702
|
+
registerUserInfo(userInfo: IUserProfile): void;
|
|
703
|
+
/**
|
|
704
|
+
* 发送 IM 消息
|
|
705
|
+
*/
|
|
706
|
+
private _sendCallMessage;
|
|
707
|
+
/**
|
|
708
|
+
* 发送邀请消息
|
|
709
|
+
*/
|
|
710
|
+
sendInvite(options: IInviteMsgOptions): Promise<{
|
|
711
|
+
code: RCCallErrorCode;
|
|
712
|
+
message?: IReceivedMessage | undefined;
|
|
713
|
+
}>;
|
|
714
|
+
/**
|
|
715
|
+
* 发送人员变更消息
|
|
716
|
+
*/
|
|
717
|
+
sendMemeberModify(options: IMemberModifyMsgOptions): Promise<{
|
|
718
|
+
code: RCCallErrorCode;
|
|
719
|
+
message?: IReceivedMessage | undefined;
|
|
720
|
+
}>;
|
|
721
|
+
/**
|
|
722
|
+
* 发送响铃消息
|
|
723
|
+
*/
|
|
724
|
+
sendRinging(options: IRingingMsgOptions): Promise<{
|
|
725
|
+
code: RCCallErrorCode;
|
|
726
|
+
message?: IReceivedMessage | undefined;
|
|
727
|
+
}>;
|
|
728
|
+
/**
|
|
729
|
+
* 发送同意接听消息
|
|
730
|
+
*/
|
|
731
|
+
sendAccept(options: IAcceptMsgOptions): Promise<{
|
|
732
|
+
code: RCCallErrorCode;
|
|
733
|
+
message?: IReceivedMessage | undefined;
|
|
734
|
+
}>;
|
|
735
|
+
/**
|
|
736
|
+
* 发送挂断消息
|
|
737
|
+
*/
|
|
738
|
+
sendHungup(options: IHungupMsgOptions): Promise<{
|
|
739
|
+
code: RCCallErrorCode;
|
|
740
|
+
message?: IReceivedMessage | undefined;
|
|
741
|
+
}>;
|
|
742
|
+
/**
|
|
743
|
+
* 发送媒体变更消息
|
|
744
|
+
*/
|
|
745
|
+
sendMediaModify(options: IMediaModifyMsgOptions): Promise<{
|
|
746
|
+
code: RCCallErrorCode;
|
|
747
|
+
message?: IReceivedMessage | undefined;
|
|
748
|
+
}>;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
declare class RCCallStateMachine {
|
|
752
|
+
private readonly _context;
|
|
753
|
+
private readonly _runtime;
|
|
754
|
+
private readonly _logger;
|
|
755
|
+
private readonly _callMsgHandler;
|
|
756
|
+
private readonly _channelId;
|
|
757
|
+
private readonly _conversationType;
|
|
758
|
+
private readonly _targetId;
|
|
759
|
+
private _mediaType;
|
|
760
|
+
private readonly _callId;
|
|
761
|
+
/**
|
|
762
|
+
* 房间状态
|
|
763
|
+
*/
|
|
764
|
+
private _sessionState;
|
|
765
|
+
/**
|
|
766
|
+
* 用户状态及信息
|
|
767
|
+
*/
|
|
768
|
+
private _userInfo;
|
|
769
|
+
/**
|
|
770
|
+
* 用户计时器映射
|
|
771
|
+
*/
|
|
772
|
+
private _userTimers;
|
|
773
|
+
/**
|
|
774
|
+
* 监听器
|
|
775
|
+
*/
|
|
776
|
+
private _watchers;
|
|
777
|
+
/**
|
|
778
|
+
* 呼叫超时时间 (单位:毫秒)
|
|
779
|
+
*/
|
|
780
|
+
private _callTimeout;
|
|
781
|
+
/**
|
|
782
|
+
* 通话建立开始时间
|
|
783
|
+
*/
|
|
784
|
+
private _beginTimestamp;
|
|
785
|
+
/**
|
|
786
|
+
* 通话结束时间
|
|
787
|
+
*/
|
|
788
|
+
private _endTimestamp;
|
|
789
|
+
/**
|
|
790
|
+
* 通话结束原因
|
|
791
|
+
*/
|
|
792
|
+
private _endReason;
|
|
793
|
+
/**
|
|
794
|
+
* 主叫 ID
|
|
795
|
+
* 发起邀请为当前用户 ID
|
|
796
|
+
* 收到邀请为 senderUserId
|
|
797
|
+
* 收到人员变更邀请为消息体中 callerId
|
|
798
|
+
*/
|
|
799
|
+
private _callerId;
|
|
800
|
+
/**
|
|
801
|
+
* 当次通话邀请者 ID
|
|
802
|
+
* 发起邀请为当前用户 ID、收到邀请为 senderUserId、收到人员变更邀请为消息体中 senderUserId
|
|
803
|
+
*/
|
|
804
|
+
private _inviterId;
|
|
805
|
+
/**
|
|
806
|
+
* 是否是跨 appkey
|
|
807
|
+
*/
|
|
808
|
+
private _isCrossAppkey;
|
|
809
|
+
private _hungupPushTitle;
|
|
810
|
+
private _hungupPushContent;
|
|
811
|
+
constructor(_context: RTCPluginContext, _runtime: IRuntime, _logger: ILogger, _callMsgHandler: CallMessageHandler, _channelId: string, _conversationType: ConversationType, _targetId: string, _mediaType: RCCallMediaType, _callId: string);
|
|
812
|
+
/**
|
|
813
|
+
* 获取校正后超时时间
|
|
814
|
+
*/
|
|
815
|
+
private _getTimeout;
|
|
816
|
+
private _clearTimerById;
|
|
817
|
+
/**
|
|
818
|
+
* 通知 call 层房间状态变更及原因
|
|
819
|
+
*/
|
|
820
|
+
private _notifyStateChange;
|
|
821
|
+
/**
|
|
822
|
+
* 通知 call 层人员状态变更及原因
|
|
823
|
+
*/
|
|
824
|
+
private _notifyUserStateChange;
|
|
825
|
+
private _otherClientHandle;
|
|
826
|
+
/**
|
|
827
|
+
* 正在通话中,且不是当前已接通用户设备(deviceId)发来的消息
|
|
828
|
+
*/
|
|
829
|
+
private _isRemoteInvalidMsg;
|
|
830
|
+
private _onRinging;
|
|
831
|
+
private _onAccept;
|
|
832
|
+
private _onMediaModify;
|
|
833
|
+
private _onHungup;
|
|
834
|
+
/**
|
|
835
|
+
* 注册事件监听
|
|
836
|
+
* @params watchers
|
|
837
|
+
*/
|
|
838
|
+
registerEventListener(watchers: ICallStateMachineWatchers): void;
|
|
839
|
+
/**
|
|
840
|
+
* 收到 invite 消息时状态机更新(CallEngine 内部调用)
|
|
841
|
+
* @param message 接收消息
|
|
842
|
+
*/
|
|
843
|
+
__onInvite(message: IReceivedMessage): void;
|
|
844
|
+
/**
|
|
845
|
+
* 收到 memberModify 消息时状态机更新(CallEngine 内部调用)
|
|
846
|
+
* @param message 接收消息
|
|
847
|
+
*/
|
|
848
|
+
__onMemberModify(message: IReceivedMessage): void;
|
|
849
|
+
/**
|
|
850
|
+
* 处理已有 session ,不允许再接听新会话情况
|
|
851
|
+
*/
|
|
852
|
+
__handleInviteInSession(): void;
|
|
853
|
+
/**
|
|
854
|
+
* 主动呼叫 (CallEngine 内部调用)
|
|
855
|
+
* @param userIds 被邀请用户 ID 列表
|
|
856
|
+
* @param extra 消息的扩展信息
|
|
857
|
+
* @param pushTitle 通知的标题
|
|
858
|
+
* @param pushContent 通知的内容
|
|
859
|
+
*/
|
|
860
|
+
__call(userIds: string[], extra?: string, pushTitle?: string, pushContent?: string, isCrossAppkey?: boolean): Promise<{
|
|
861
|
+
code: RCCallErrorCode;
|
|
862
|
+
}>;
|
|
863
|
+
/**
|
|
864
|
+
* 接听
|
|
865
|
+
*/
|
|
866
|
+
accept(): Promise<{
|
|
867
|
+
code: RCCallErrorCode;
|
|
868
|
+
}>;
|
|
869
|
+
/**
|
|
870
|
+
* 群呼叫中继续邀请
|
|
871
|
+
* @param userIds 被邀请用户 ID 列表
|
|
872
|
+
*/
|
|
873
|
+
invite(userIds: string[], options?: IInviteOptions): Promise<{
|
|
874
|
+
code: RCCallErrorCode;
|
|
875
|
+
}>;
|
|
876
|
+
private _hungupHandle;
|
|
877
|
+
/**
|
|
878
|
+
* 挂断
|
|
879
|
+
*/
|
|
880
|
+
hungup(pushTitle?: string, pushContent?: string): Promise<{
|
|
881
|
+
code: RCCallErrorCode;
|
|
882
|
+
}>;
|
|
883
|
+
/**
|
|
884
|
+
* 修改通话媒体类型
|
|
885
|
+
* @param mediaType RCCallMediaType.AUDIO 改为音频通话 | RCCallMediaType.AUDIO_VIDEO 改为音视频通话
|
|
886
|
+
*/
|
|
887
|
+
changeMediaType(mediaType: RCCallMediaType): Promise<{
|
|
888
|
+
code: RCCallErrorCode;
|
|
889
|
+
}>;
|
|
890
|
+
/**
|
|
891
|
+
* 用户加入通话补偿机制(rtc userJoin 事件触发)
|
|
892
|
+
* 主叫呼叫后,未收到被叫 accept 消息,但收到了 userJoin 同样补偿更新用户、房间状态、呼叫计时器
|
|
893
|
+
*/
|
|
894
|
+
userJoin(userIds: string[]): void;
|
|
895
|
+
/**
|
|
896
|
+
* 用户离开通话补偿机制(rtc userLeave、kickOff 事件触发)
|
|
897
|
+
* 通话中远端用户挂断,挂断消息未到,但是监听到 rtc userLeave 同样补偿更新用户、房间状态
|
|
898
|
+
*/
|
|
899
|
+
userLeave(userIds: string[]): void;
|
|
900
|
+
/**
|
|
901
|
+
* Call 层己方异常失败后调用的方法
|
|
902
|
+
* 触发时机:音视频服务异常、获取资源失败、加入 RTC 房间失败、发布|订阅失败
|
|
903
|
+
*/
|
|
904
|
+
close(reason: RCCallEndReason): void;
|
|
905
|
+
setHungupPushConfig(pushConfig?: string, pushContent?: string): void;
|
|
906
|
+
/**
|
|
907
|
+
* 通话唯一标识
|
|
908
|
+
*/
|
|
909
|
+
getCallId(): string;
|
|
910
|
+
/**
|
|
911
|
+
* 多组织 ID
|
|
912
|
+
*/
|
|
913
|
+
getChannelId(): string;
|
|
914
|
+
/**
|
|
915
|
+
* 目标 ID,单呼对方人员 Id, 群呼群组 Id
|
|
916
|
+
*/
|
|
917
|
+
getTargetId(): string;
|
|
918
|
+
/**
|
|
919
|
+
* 获取会话类型
|
|
920
|
+
*/
|
|
921
|
+
getConversationType(): ConversationType;
|
|
922
|
+
/**
|
|
923
|
+
* 获取远端成员 ID 列表
|
|
924
|
+
*/
|
|
925
|
+
getRemoteUserIds(): string[];
|
|
926
|
+
/**
|
|
927
|
+
* 获取远端成员信息列表
|
|
928
|
+
*/
|
|
929
|
+
getRemoteUsers(): IUserData[];
|
|
930
|
+
/**
|
|
931
|
+
* 获取房间状态
|
|
932
|
+
*/
|
|
933
|
+
getState(): RCCallSessionState;
|
|
934
|
+
/**
|
|
935
|
+
* 获取人员状态
|
|
936
|
+
*/
|
|
937
|
+
getUserState(userId: string): RCCallUserState;
|
|
938
|
+
/**
|
|
939
|
+
* 获取会话发起者 Id
|
|
940
|
+
*/
|
|
941
|
+
getCallerId(): string;
|
|
942
|
+
/**
|
|
943
|
+
* 获取当次会话邀请者 Id
|
|
944
|
+
*/
|
|
945
|
+
getInviterId(): string;
|
|
946
|
+
/**
|
|
947
|
+
* 获取当前通话媒体类型
|
|
948
|
+
*/
|
|
949
|
+
getMediaType(): RCCallMediaType;
|
|
950
|
+
/**
|
|
951
|
+
* 通话挂断后可调用
|
|
952
|
+
*/
|
|
953
|
+
getSummary(): IEndSummary;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
declare enum RCCallLanguage {
|
|
957
|
+
ZH = "zh",
|
|
958
|
+
EN = "en"
|
|
959
|
+
}
|
|
960
|
+
|
|
13
961
|
/**
|
|
14
962
|
* 产生session的场景
|
|
15
963
|
*/
|
|
@@ -617,7 +1565,7 @@ declare class RCCallClient {
|
|
|
617
1565
|
* @param params.bitrate 需要设置的码率参数
|
|
618
1566
|
*
|
|
619
1567
|
*/
|
|
620
|
-
startCrossCall({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate }: IRCCallParams): Promise<{
|
|
1568
|
+
startCrossCall({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate, }: IRCCallParams): Promise<{
|
|
621
1569
|
code: RCCallErrorCode;
|
|
622
1570
|
session?: RCCallSession;
|
|
623
1571
|
}>;
|
|
@@ -634,7 +1582,7 @@ declare class RCCallClient {
|
|
|
634
1582
|
* @param params.bitrate 需要设置的码率参数
|
|
635
1583
|
*
|
|
636
1584
|
*/
|
|
637
|
-
call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate }: IRCCallParams): Promise<{
|
|
1585
|
+
call({ targetId, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate, }: IRCCallParams): Promise<{
|
|
638
1586
|
code: RCCallErrorCode;
|
|
639
1587
|
session?: RCCallSession;
|
|
640
1588
|
}>;
|
|
@@ -652,7 +1600,7 @@ declare class RCCallClient {
|
|
|
652
1600
|
* @deprecated 5.1.2 版本废弃 params.pushContent 通知的内容
|
|
653
1601
|
* @param params.bitrate 需要设置的码率参数
|
|
654
1602
|
*/
|
|
655
|
-
callInGroup({ targetId, userIds, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate }: IRCCallInGroupParams): Promise<{
|
|
1603
|
+
callInGroup({ targetId, userIds, mediaType, listener, constraints, channelId, extra, pushTitle, pushContent, bitrate, }: IRCCallInGroupParams): Promise<{
|
|
656
1604
|
code: RCCallErrorCode;
|
|
657
1605
|
session?: RCCallSession;
|
|
658
1606
|
}>;
|
|
@@ -686,4 +1634,4 @@ declare class RCCallClient {
|
|
|
686
1634
|
|
|
687
1635
|
declare const installer: IPluginGenerator<RCCallClient, IRCCallInitOptions>;
|
|
688
1636
|
|
|
689
|
-
export { IDeviceChangeParams, IMediaStreamConstraints, IMuteUser, IPushConfig, IRCCallInGroupParams, IRCCallInitOptions, IRCCallParams, ISessionListener, RCCallClient, RCCallSession, installer };
|
|
1637
|
+
export { IDeviceChangeParams, IEndSummary, IInvitedUsers, IMediaStreamConstraints, IMuteUser, IOfflineRecord, IPushConfig, IRCCallInGroupParams, IRCCallInitOptions, IRCCallParams, ISenderInfo, ISessionListener, RCCallClient, RCCallEndReason, RCCallErrorCode, RCCallLanguage, RCCallMediaType, RCCallSession, RCCallSessionState, RCCallUserState, installer };
|