@rongcloud/plugin-call 5.2.4 → 5.2.5
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 +3 -8
- package/dist/index.esm.js +116 -162
- package/dist/index.umd.js +5 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -627,13 +627,11 @@ interface IRCCallInitOptions {
|
|
|
627
627
|
*/
|
|
628
628
|
lang?: RCCallLanguage;
|
|
629
629
|
}
|
|
630
|
-
declare type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;
|
|
631
630
|
/**
|
|
632
631
|
* 呼叫、挂断推送信息
|
|
633
632
|
*/
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
}>;
|
|
633
|
+
interface IPushConfig extends Partial<IPushConfig$1> {
|
|
634
|
+
}
|
|
637
635
|
/**
|
|
638
636
|
* session上的监听
|
|
639
637
|
*/
|
|
@@ -1624,11 +1622,8 @@ declare class RCCallClient {
|
|
|
1624
1622
|
/**
|
|
1625
1623
|
* 设置呼叫、挂断推送数据
|
|
1626
1624
|
* @param callPushConfig 呼叫推送配置
|
|
1627
|
-
* @param callPushConfig.pushTitle 呼叫推送标题
|
|
1628
|
-
* @param callPushConfig.pushContent 呼叫推送内容
|
|
1629
1625
|
* @param hungupPushConfig 挂断推送配置
|
|
1630
|
-
* @
|
|
1631
|
-
* @param hungupPushConfig.pushContent 挂断推送内容
|
|
1626
|
+
* @description callLib 会内置 IPushConfig 中 pushData 的赋值,业务层无需关注 pushData 字段值
|
|
1632
1627
|
*/
|
|
1633
1628
|
setPushConfig(callPushConfig: IPushConfig, hungupPushConfig: IPushConfig): {
|
|
1634
1629
|
code: RCCallErrorCode.STATE_MACHINE_EXIT | RCCallErrorCode.SEND_MSG_ERROR | RCCallErrorCode.REJECTED_BY_BLACKLIST | RCCallErrorCode.NOT_IN_GROUP | RCCallErrorCode.GET_LOCAL_AUDIO_TRACK_ERROR | RCCallErrorCode.GET_LOCAL_VIDEO_TRACK_ERROR | RCCallErrorCode.GET_LOCAL_AUDIO_AND_VIDEO_TRACK_ERROR | RCCallErrorCode.JOIN_ROOM_ERROR | RCCallErrorCode.AUDIO_PUBLISH_ERROR | RCCallErrorCode.VIDEO_PUBLISH_ERROR | RCCallErrorCode.AUDIO_AND_VIDEO_PUBLISH_ERROR | RCCallErrorCode.QUERY_JOINED_USER_INFO_ERROR | RCCallErrorCode.MISSING_VIDEO_TRACK_ERROR | RCCallErrorCode.UNPUBLISH_VIDEO_ERROR | RCCallErrorCode.CONVERSATION_NOT_GROUP_ERROR | RCCallErrorCode.NOT_IN_ROOM_ERROR | RCCallErrorCode.PARAM_ERROR;
|