@zegocloud/zego-uikit-prebuilt 1.5.3 → 1.6.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/index.d.ts
CHANGED
|
@@ -33,8 +33,8 @@ export declare class ZegoUIKitPrebuilt {
|
|
|
33
33
|
destroy(): void;
|
|
34
34
|
setCallInvitationConfig(config?: ZegoCallInvitationConfig): void;
|
|
35
35
|
sendCallInvitation(params: {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
callees: ZegoUser[];
|
|
37
|
+
callType: ZegoInvitationType;
|
|
38
38
|
timeout?: number;
|
|
39
39
|
data?: string;
|
|
40
40
|
notificationConfig?: ZegoSignalingPluginNotificationConfig;
|
package/model/index.d.ts
CHANGED
|
@@ -240,10 +240,21 @@ export interface ZegoCallInvitationConfig {
|
|
|
240
240
|
enableCustomCallInvitationWaitingPage?: boolean;
|
|
241
241
|
enableCustomCallInvitationDialog?: boolean;
|
|
242
242
|
enableNotifyWhenAppRunningInBackgroundOrQuit?: boolean;
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
ringtoneConfig?: {
|
|
244
|
+
incomingCallUrl?: string;
|
|
245
|
+
outgoingCallUrl?: string;
|
|
246
|
+
};
|
|
247
|
+
onWaitingPageWhenSending?: (callType: ZegoInvitationType, callees: ZegoUser[], cancel: CancelCallInvitationFunc) => void;
|
|
248
|
+
onConfirmDialogWhenReceiving?: (callType: ZegoInvitationType, caller: ZegoUser, refuse: RefuseCallInvitationFunc, accept: AcceptCallInvitationFunc, data: string) => void;
|
|
249
|
+
onSetRoomConfigBeforeJoining?: (callType: ZegoInvitationType) => ZegoCloudRoomConfig;
|
|
246
250
|
onCallInvitationEnded?: (reason: CallInvitationEndReason, data: string) => void;
|
|
251
|
+
onIncomingCallReceived?: (callID: string, caller: ZegoUser, callType: ZegoInvitationType, callees: ZegoUser[]) => void;
|
|
252
|
+
onIncomingCallCanceled?: (callID: string, caller: ZegoUser) => void;
|
|
253
|
+
onOutgoingCallAccepted?: (callID: string, callee: ZegoUser) => void;
|
|
254
|
+
onOutgoingCallRejected?: (callID: string, callee: ZegoUser) => void;
|
|
255
|
+
onOutgoingCallDeclined?: (callID: string, callee: ZegoUser) => void;
|
|
256
|
+
onIncomingCallTimeout?: (callID: string, caller: ZegoUser) => void;
|
|
257
|
+
onOutgoingCallTimeout?: (callID: string, callees: ZegoUser[]) => void;
|
|
247
258
|
}
|
|
248
259
|
export type CancelCallInvitationFunc = (data?: string) => void;
|
|
249
260
|
export type AcceptCallInvitationFunc = (data?: string) => void;
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
2
|
+
"name": "@zegocloud/zego-uikit-prebuilt",
|
|
3
|
+
"version": "1.6.0",
|
|
4
|
+
"description": "zegocloud prebuilt meeting webrtc sdk",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"sdk",
|
|
7
|
+
"zego",
|
|
8
|
+
"zegocloud",
|
|
9
|
+
"webrtc",
|
|
10
|
+
"video call",
|
|
11
|
+
"voice call"
|
|
12
|
+
],
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"author": "zegodev",
|
|
15
|
+
"main": "./zego-uikit-prebuilt.js",
|
|
16
|
+
"typings": "./sdk/index.d.ts",
|
|
17
|
+
"access": "public"
|
|
18
|
+
}
|
|
@@ -7,9 +7,9 @@ declare class CallInvitationControl {
|
|
|
7
7
|
root: Root | undefined;
|
|
8
8
|
isPc: boolean;
|
|
9
9
|
constructor(container: Element);
|
|
10
|
-
callInvitationWaitingPageShow(invitee: ZegoUser, type: ZegoInvitationType, cancel: () => void): void;
|
|
10
|
+
callInvitationWaitingPageShow(invitee: ZegoUser, type: ZegoInvitationType, cancel: () => void, outgoingCallUrl?: string): void;
|
|
11
11
|
callInvitationWaitingPageHide(): void;
|
|
12
|
-
callInvitationDialogShow(inviter: ZegoUser, refuse: Function, accept: Function): void;
|
|
12
|
+
callInvitationDialogShow(inviter: ZegoUser, refuse: Function, accept: Function, incomingCallUrl?: string): void;
|
|
13
13
|
callInvitationDialogHide(): void;
|
|
14
14
|
}
|
|
15
15
|
export declare const callInvitationControl: CallInvitationControl;
|