@zegocloud/zego-uikit-prebuilt 1.6.2 → 1.7.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 +63 -68
- package/package.json +2 -2
- package/zego-uikit-prebuilt.js +225 -60
package/index.d.ts
CHANGED
|
@@ -50,84 +50,74 @@ declare enum LiveStreamingMode {
|
|
|
50
50
|
InteractiveLiveStreaming = "InteractiveLiveStreaming", // L3
|
|
51
51
|
RealTimeLive = "RealTimeLive", //RTC
|
|
52
52
|
}
|
|
53
|
+
|
|
54
|
+
declare enum ConsoleLevel {
|
|
55
|
+
Debug = "Debug",
|
|
56
|
+
Info = "Info",
|
|
57
|
+
Warning = "Warning",
|
|
58
|
+
Error = "Error",
|
|
59
|
+
None = "None",
|
|
60
|
+
}
|
|
53
61
|
declare interface ZegoCloudRoomConfig {
|
|
54
|
-
|
|
62
|
+
// 1 UI controls
|
|
63
|
+
// 1.1 Global
|
|
64
|
+
container?: HTMLElement | undefined | null; // Component container.
|
|
65
|
+
maxUsers?: number; // In-call participants range from [2 - 20]. The default value is unlimited.
|
|
66
|
+
scenario?: {
|
|
67
|
+
mode?: ScenarioModel; // Scenario selection.
|
|
68
|
+
config?: ScenarioConfig[ScenarioModel]; // Specific configurations in the corresponding scenario.
|
|
69
|
+
};
|
|
70
|
+
console?: ConsoleLevel; // Used to problem localization, not a regular setup. While setting this can decide what severity of logs you want to print.
|
|
71
|
+
// 1.2 Prejoin view
|
|
72
|
+
showPreJoinView?: boolean; // Whether to display the prejoin view. Displayed by default.
|
|
55
73
|
preJoinViewConfig?: {
|
|
56
|
-
title?: string; //
|
|
57
|
-
invitationLink?: string;
|
|
74
|
+
title?: string; // The title of the prejoin view. Uses "enter Room" by default.
|
|
58
75
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
showMyMicrophoneToggleButton?: boolean; // Whether to display the button to control your own camera, the default display
|
|
64
|
-
showAudioVideoSettingsButton?: boolean; // Whether to display the audio and video settings button, the default display
|
|
76
|
+
turnOnMicrophoneWhenJoining?: boolean; // Whether to enable the microphone when joining the call. Enabled by default.
|
|
77
|
+
turnOnCameraWhenJoining?: boolean; // Whether to enable the camera when joining the call. Enabled by default.
|
|
78
|
+
useFrontFacingCamera?: boolean; // Whether to use the front-facing camera when joining the room. Uses a front-facing camera by default.
|
|
79
|
+
videoResolutionDefault?: VideoResolution; // The default video resolution.
|
|
65
80
|
|
|
66
|
-
|
|
67
|
-
|
|
81
|
+
// 1.3 Room view
|
|
82
|
+
showRoomTimer: boolean; // Whether to display the timer. Not displayed by default.
|
|
83
|
+
showMyCameraToggleButton?: boolean; // Whether to display the button for toggling my camera. Displayed by default.
|
|
84
|
+
showMyMicrophoneToggleButton?: boolean; // Whether to display the button for toggling my microphone. Displayed by default.
|
|
85
|
+
showAudioVideoSettingsButton?: boolean; // Whether to display the button for audio and video settings. Displayed by default.
|
|
86
|
+
showTurnOffRemoteCameraButton: boolean; /// Whether to display the button for turning off the remote camera. Not displayed by default.
|
|
87
|
+
showTurnOffRemoteMicrophoneButton: boolean; // Whether to display the button for turning off the remote microphone. Not displayed by default.
|
|
88
|
+
showTextChat?: boolean; // Whether to display the text chat interface on the right side. Displayed by default.
|
|
89
|
+
showUserList?: boolean; // Whether to display the participant list. Displayed by default.
|
|
90
|
+
showRemoveUserButton: boolean; // Whether to display the button for removing participants. Not displayed by default.
|
|
68
91
|
lowerLeftNotification?: {
|
|
69
|
-
showUserJoinAndLeave?: boolean; //Whether to display
|
|
70
|
-
showTextChat?: boolean; // Whether to display
|
|
92
|
+
showUserJoinAndLeave?: boolean; // Whether to display notifications on the lower left area when participants join and leave the room. Displayed by default.
|
|
93
|
+
showTextChat?: boolean; // Whether to display the latest messages on the lower left area. Displayed by default.
|
|
71
94
|
};
|
|
72
95
|
branding?: {
|
|
73
|
-
logoURL?: string; //
|
|
74
|
-
};
|
|
75
|
-
showLeavingView?: boolean; // The page after leaving the room, by default
|
|
76
|
-
|
|
77
|
-
maxUsers?: number; // The number of people in the room is 2 to 20, the default is 2
|
|
78
|
-
layout?: "Sidebar" | "Grid" | "Auto"; // Default Default
|
|
79
|
-
|
|
80
|
-
showNonVideoUser?: boolean; // whether to display users without video, default display
|
|
81
|
-
showOnlyAudioUser?: boolean; // Whether to display audio-only users, the default display
|
|
82
|
-
|
|
83
|
-
useFrontFacingCamera?: boolean;
|
|
84
|
-
onJoinRoom?: () => void; // User enters call page callback
|
|
85
|
-
onLeaveRoom?: () => void; // User exit call page callback
|
|
86
|
-
onUserJoin?: (user: ZegoUser[]) => void; // other users enter the callback
|
|
87
|
-
onUserLeave?: (user: ZegoUser[]) => void; // Other users leave the callback
|
|
88
|
-
sharedLinks?: { name?: string; url?: string }[]; // product link description
|
|
89
|
-
showScreenSharingButton?: boolean; // Whether to display the screen sharing button
|
|
90
|
-
scenario?: {
|
|
91
|
-
mode?: ScenarioModel; // Scenario selection
|
|
92
|
-
config?: ScenarioConfig[ScenarioModel]; // Corresponding scenario-specific configuration
|
|
96
|
+
logoURL?: string; // The branding LOGO URL.
|
|
93
97
|
};
|
|
94
|
-
|
|
95
|
-
showLayoutButton?: boolean; // Whether to display the
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
onLiveEnd?: (user: ZegoUser) => void; //Callback for live broadcast end
|
|
102
|
-
/**
|
|
103
|
-
* @deprecated facingMode will be removed
|
|
104
|
-
* */
|
|
105
|
-
facingMode?: "user" | "environment"; // front camera mode
|
|
106
|
-
/**
|
|
107
|
-
* @deprecated joinRoomCallback will be removed
|
|
108
|
-
* */
|
|
109
|
-
joinRoomCallback?: () => void; // join room success callback
|
|
110
|
-
/**
|
|
111
|
-
* @deprecated leaveRoomCallback will be removed
|
|
112
|
-
* */
|
|
113
|
-
leaveRoomCallback?: () => void; // exit room callback
|
|
114
|
-
/**
|
|
115
|
-
* @deprecated userUpdateCallback will be removed
|
|
116
|
-
* */
|
|
117
|
-
userUpdateCallback?: (
|
|
118
|
-
updateType: "DELETE" | "ADD",
|
|
119
|
-
userList: ZegoUser[]
|
|
120
|
-
) => void; // user add/exit callback
|
|
121
|
-
/**
|
|
122
|
-
* @deprecated roomTimerDisplayed will be removed
|
|
123
|
-
* */
|
|
124
|
-
roomTimerDisplayed?: boolean; // Whether to display the countdown
|
|
125
|
-
|
|
98
|
+
layout?: "Sidebar" | "Grid" | "Auto"; // The layout modes. Uses the Auto mode by default.
|
|
99
|
+
showLayoutButton?: boolean; // Whether to display the button for switching layouts. Displayed by default.
|
|
100
|
+
showNonVideoUser?: boolean; // Whether to display the non-video participants. Displayed by default.
|
|
101
|
+
showOnlyAudioUser?: boolean; // Whether to display audio-only participants. Displayed by default.
|
|
102
|
+
sharedLinks?: { name?: string; url?: string }[]; // Description of the generated shared links.
|
|
103
|
+
showScreenSharingButton?: boolean; // Whether to display the Screen Sharing button. Displayed by default.
|
|
104
|
+
showPinButton?: boolean; // Whether to display the Pin button. Displayed by default.
|
|
126
105
|
whiteboardConfig?: {
|
|
127
|
-
showAddImageButton?: boolean; //
|
|
128
|
-
showCreateAndCloseButton?: boolean;
|
|
106
|
+
showAddImageButton?: boolean; // It's set to false by default. To use this feature, activate the File Sharing feature, and then import the plugin. Otherwise, this prompt will occur: "Failed to add image, this feature is not supported."
|
|
107
|
+
showCreateAndCloseButton?: boolean; // Whether to display the button that is used to create/turn off the whiteboard. Displayed by default.
|
|
129
108
|
};
|
|
130
|
-
|
|
109
|
+
// 1.4 Leaving view
|
|
110
|
+
showLeavingView?: boolean; // Whether to display the leaving view. Displayed by default.
|
|
111
|
+
|
|
112
|
+
// 2 Related event callbacks
|
|
113
|
+
onJoinRoom?: (users: ZegoUser[]) => void; // Callback for participants join the room.
|
|
114
|
+
onLeaveRoom?: (users: ZegoUser[]) => void; // Callback for participants exits the room.
|
|
115
|
+
onUserJoin?: (user: ZegoUser[]) => void; // Callback for other participants join the call.
|
|
116
|
+
onUserLeave?: (user: ZegoUser[]) => void; // Callback for other participants leave the call.
|
|
117
|
+
onUserAvatarSetter?: (user: ZegoUser[]) => void; // Callback for the user avatar can be set.
|
|
118
|
+
onLiveStart?: (user: ZegoUser) => void; // Callback for livestream starts.
|
|
119
|
+
onLiveEnd?: (user: ZegoUser) => void; // Callback for livestream ends.
|
|
120
|
+
onYouRemovedFromRoom: () => void; // Callback for me removed from the room.
|
|
131
121
|
}
|
|
132
122
|
|
|
133
123
|
declare enum ZegoInvitationType {
|
|
@@ -224,6 +214,11 @@ export declare class ZegoUIKitPrebuilt {
|
|
|
224
214
|
static LiveStreamingMode: typeof LiveStreamingMode;
|
|
225
215
|
static InvitationTypeVoiceCall: ZegoInvitationType;
|
|
226
216
|
static InvitationTypeVideoCall: ZegoInvitationType;
|
|
217
|
+
static ConsoleDebug: ConsoleLevel;
|
|
218
|
+
static ConsoleInfo: ConsoleLevel;
|
|
219
|
+
static ConsoleWarning: ConsoleLevel;
|
|
220
|
+
static ConsoleError: ConsoleLevel;
|
|
221
|
+
static ConsoleNone: ConsoleLevel;
|
|
227
222
|
private hasJoinedRoom;
|
|
228
223
|
static generateKitTokenForTest(
|
|
229
224
|
appID: number,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zegocloud/zego-uikit-prebuilt",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "zegocloud prebuilt meeting webrtc sdk",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sdk",
|
|
@@ -15,4 +15,4 @@
|
|
|
15
15
|
"main": "./zego-uikit-prebuilt.js",
|
|
16
16
|
"typings": "./sdk/index.d.ts",
|
|
17
17
|
"access": "public"
|
|
18
|
-
}
|
|
18
|
+
}
|