@zegocloud/zego-uikit-prebuilt 1.7.2 → 1.7.3
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 +22 -3
- package/package.json +1 -1
- package/zego-uikit-prebuilt.js +12 -12
package/index.d.ts
CHANGED
|
@@ -58,6 +58,12 @@ declare enum ConsoleLevel {
|
|
|
58
58
|
Error = "Error",
|
|
59
59
|
None = "None",
|
|
60
60
|
}
|
|
61
|
+
declare interface InRoomMessageInfo {
|
|
62
|
+
fromUser: ZegoUser;
|
|
63
|
+
message: string;
|
|
64
|
+
sendTime: number;
|
|
65
|
+
messageID: number;
|
|
66
|
+
}
|
|
61
67
|
declare interface ZegoCloudRoomConfig {
|
|
62
68
|
// 1 UI controls
|
|
63
69
|
// 1.1 Global
|
|
@@ -79,7 +85,8 @@ declare interface ZegoCloudRoomConfig {
|
|
|
79
85
|
videoResolutionDefault?: VideoResolution; // The default video resolution.
|
|
80
86
|
|
|
81
87
|
// 1.3 Room view
|
|
82
|
-
|
|
88
|
+
showRoomDetailsButton?: boolean; // Whether to display room details. Displayed by default
|
|
89
|
+
showRoomTimer?: boolean; // Whether to display the timer. Not displayed by default.
|
|
83
90
|
showMyCameraToggleButton?: boolean; // Whether to display the button for toggling my camera. Displayed by default.
|
|
84
91
|
showMyMicrophoneToggleButton?: boolean; // Whether to display the button for toggling my microphone. Displayed by default.
|
|
85
92
|
showAudioVideoSettingsButton?: boolean; // Whether to display the button for audio and video settings. Displayed by default.
|
|
@@ -117,9 +124,20 @@ declare interface ZegoCloudRoomConfig {
|
|
|
117
124
|
onUserAvatarSetter?: (user: ZegoUser[]) => void; // Callback for the user avatar can be set.
|
|
118
125
|
onLiveStart?: (user: ZegoUser) => void; // Callback for livestream starts.
|
|
119
126
|
onLiveEnd?: (user: ZegoUser) => void; // Callback for livestream ends.
|
|
120
|
-
onYouRemovedFromRoom
|
|
127
|
+
onYouRemovedFromRoom?: () => void; // Callback for me removed from the room.
|
|
128
|
+
onInRoomMessageReceived?: (messageInfo: InRoomMessageInfo) => void; // Callback for room chat message
|
|
129
|
+
onInRoomCommandReceived?: (fromUser: ZegoUser, command: string) => void; // Callback for room command message
|
|
130
|
+
onInRoomTextMessageReceived?: (
|
|
131
|
+
messages: ZegoSignalingInRoomTextMessage[]
|
|
132
|
+
) => void; // Callback for room signaling text message
|
|
133
|
+
}
|
|
134
|
+
declare interface ZegoSignalingInRoomTextMessage {
|
|
135
|
+
messageID: string;
|
|
136
|
+
timestamp: number;
|
|
137
|
+
orderKey: number;
|
|
138
|
+
senderUserID: string;
|
|
139
|
+
text: string;
|
|
121
140
|
}
|
|
122
|
-
|
|
123
141
|
declare enum ZegoInvitationType {
|
|
124
142
|
VoiceCall = 0,
|
|
125
143
|
VideoCall,
|
|
@@ -249,4 +267,5 @@ export declare class ZegoUIKitPrebuilt {
|
|
|
249
267
|
}): Promise<{
|
|
250
268
|
errorInvitees: ZegoUser[];
|
|
251
269
|
}>;
|
|
270
|
+
sendInRoomCommand(command: string, toUserIDs: string[]): Promise<boolean>;
|
|
252
271
|
}
|