@rongcloud/plugin-call-plus 2.0.0 → 2.0.1-alpha.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.
- package/dist/index.d.ts +35 -6
- package/dist/index.esm.js +4161 -2385
- package/dist/index.umd.js +5778 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -752,6 +752,10 @@ interface IRingingCallCon extends IBaseSingalCon {
|
|
|
752
752
|
* 通话接听信令内容
|
|
753
753
|
*/
|
|
754
754
|
interface IAcceptCallCon extends IBaseSingalCon {
|
|
755
|
+
/**
|
|
756
|
+
* 服务端接收的推送扩展
|
|
757
|
+
*/
|
|
758
|
+
pushExt?: string;
|
|
755
759
|
}
|
|
756
760
|
/**
|
|
757
761
|
* 直接加入通话信令内容
|
|
@@ -1361,6 +1365,10 @@ interface IInviteRes extends ICallId {
|
|
|
1361
1365
|
busylineUsers?: IBusylineUser[];
|
|
1362
1366
|
}
|
|
1363
1367
|
interface IAcceptOpts extends ICallId {
|
|
1368
|
+
/**
|
|
1369
|
+
* 推送扩展
|
|
1370
|
+
*/
|
|
1371
|
+
pushConfig?: IRCCallPlusPushConfig;
|
|
1364
1372
|
}
|
|
1365
1373
|
interface IHangupForBusyOpts extends ICallId {
|
|
1366
1374
|
/**
|
|
@@ -2360,6 +2368,14 @@ declare class RCCallEngine extends EventEmitter {
|
|
|
2360
2368
|
* 收到 通话邀请
|
|
2361
2369
|
*/
|
|
2362
2370
|
private _onInvite;
|
|
2371
|
+
/**
|
|
2372
|
+
* 本端被邀请处理
|
|
2373
|
+
*/
|
|
2374
|
+
private _selfIsInviteeHandle;
|
|
2375
|
+
/**
|
|
2376
|
+
* 其他人被邀请处理
|
|
2377
|
+
*/
|
|
2378
|
+
private _othersIsInviteeHandle;
|
|
2363
2379
|
/**
|
|
2364
2380
|
* 收到 挂断(对方通话取消、通话拒绝)
|
|
2365
2381
|
*/
|
|
@@ -2395,10 +2411,7 @@ declare class RCCallEngine extends EventEmitter {
|
|
|
2395
2411
|
/**
|
|
2396
2412
|
* 通话结束
|
|
2397
2413
|
*/
|
|
2398
|
-
|
|
2399
|
-
callId: string;
|
|
2400
|
-
toDeviceId: string;
|
|
2401
|
-
}, traceId: string, isSelfHangup: boolean): void;
|
|
2414
|
+
private _onSessionClose;
|
|
2402
2415
|
/**
|
|
2403
2416
|
* 根据 callId 移除 session
|
|
2404
2417
|
*/
|
|
@@ -2626,6 +2639,7 @@ interface ICallPlusEventListener {
|
|
|
2626
2639
|
* @param userId 状态变更人员 id
|
|
2627
2640
|
* @param state 人员变更后状态
|
|
2628
2641
|
* @param reason 变更原因
|
|
2642
|
+
* @param extra 透传远端人员接听、挂断时携带的附加信息
|
|
2629
2643
|
*/
|
|
2630
2644
|
onRemoteUserStateChanged?(callId: string, userId: string, state: RCCallPlusSessionUserState, reason?: RCCallPlusReason): void;
|
|
2631
2645
|
/**
|
|
@@ -3072,8 +3086,11 @@ declare class RCCallPlusAndroidPushConfigBuilder {
|
|
|
3072
3086
|
setimageUrlHonor(imageUrlHonor: string): this;
|
|
3073
3087
|
/**
|
|
3074
3088
|
* 构建 IAndroidPushConfig
|
|
3089
|
+
<<<<<<< HEAD
|
|
3090
|
+
=======
|
|
3075
3091
|
* @returns IAndroidPushConfig 安卓推送配置数据
|
|
3076
3092
|
* 返回值需传入 startCall、invite、hangup 方法的 pushConfig.androidConfig 中
|
|
3093
|
+
>>>>>>> develop
|
|
3077
3094
|
*/
|
|
3078
3095
|
build(): IAndroidPushConfig;
|
|
3079
3096
|
}
|
|
@@ -3263,14 +3280,16 @@ declare class RCCallPlusClient {
|
|
|
3263
3280
|
/**
|
|
3264
3281
|
* 接听通话
|
|
3265
3282
|
* @param callId 通话 id
|
|
3283
|
+
* @param pushConfig 移动端推送信息
|
|
3266
3284
|
*/
|
|
3267
|
-
accept(callId: string): Promise<{
|
|
3285
|
+
accept(callId: string, pushConfig?: IRCCallPlusPushConfig): Promise<{
|
|
3268
3286
|
code: number;
|
|
3269
3287
|
}>;
|
|
3270
3288
|
private __innerHangup;
|
|
3271
3289
|
/**
|
|
3272
3290
|
* 挂断通话
|
|
3273
3291
|
* @param callId 为可选参数,不传时,挂断正在进行的主 session,传入时可指定挂断主通话或暂未建立连接的通话
|
|
3292
|
+
* @param pushConfig 移动端推送信息
|
|
3274
3293
|
* 暂未建立连接的通话:指已在通话中时,收到呼叫但暂未接听的通话
|
|
3275
3294
|
* @param pushConfig 移动端推送信息
|
|
3276
3295
|
*/
|
|
@@ -3355,7 +3374,7 @@ declare class RCCallPlusClient {
|
|
|
3355
3374
|
/**
|
|
3356
3375
|
* 切换摄像头
|
|
3357
3376
|
* 切换成功后 `ICallPlusEventListener` 监听器的 `onUserMediaAvailable` 中会收到新切换的摄像头资源可播放,此时调用 `callPlusClient.playMedia()` 可显示新摄像头的画面
|
|
3358
|
-
* @param cameraId 浏览器中取得的摄像头设备 id,可调
|
|
3377
|
+
* @param cameraId 浏览器中取得的摄像头设备 id,可调 getCameras 方法取得
|
|
3359
3378
|
* @description 通话前和通话中都可调用
|
|
3360
3379
|
*/
|
|
3361
3380
|
switchCamera(cameraId: string): Promise<{
|
|
@@ -3399,6 +3418,16 @@ declare class RCCallPlusClient {
|
|
|
3399
3418
|
* 获取麦克风列表
|
|
3400
3419
|
*/
|
|
3401
3420
|
getMicrophones(): Promise<MediaDeviceInfo[]>;
|
|
3421
|
+
getRTCSessionId(): string | null;
|
|
3422
|
+
/**
|
|
3423
|
+
* 切换麦克风
|
|
3424
|
+
* 切换成功后 `ICallPlusEventListener` 监听器的 `onUserMediaAvailable` 中会收到新切换的麦克风资源可播放,此时调用 `callPlusClient.playMedia()` 可播放新麦克风的声音
|
|
3425
|
+
* @param microphoneId 浏览器中取得的麦克风设备 id,可调 getMicrophones 方法取得
|
|
3426
|
+
* @description 通话前和通话中都可调用
|
|
3427
|
+
*/
|
|
3428
|
+
switchMicrophone(microphoneId: string): Promise<{
|
|
3429
|
+
code: number;
|
|
3430
|
+
}>;
|
|
3402
3431
|
}
|
|
3403
3432
|
|
|
3404
3433
|
declare const installer: IPluginGenerator<RCCallPlusClient, ICallPlusInitOpts>;
|