@zegocloud/zego-uikit-prebuilt 2.0.0 → 2.1.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 +62 -52
- package/package.json +2 -2
- package/zego-uikit-prebuilt.js +1 -1
package/index.d.ts
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
1
|
declare type ZegoCloudRTCCore = {};
|
|
2
2
|
declare type ZegoExpressEngine = {};
|
|
3
3
|
declare interface ZegoUser {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
userID: string;
|
|
5
|
+
userName?: string;
|
|
6
|
+
setUserAvatar?: (avatar: string) => void;
|
|
7
7
|
}
|
|
8
8
|
declare enum LiveRole {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Host = "Host",
|
|
10
|
+
Cohost = "Cohost",
|
|
11
|
+
Audience = "Audience",
|
|
12
12
|
}
|
|
13
13
|
declare enum ScenarioModel {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
OneONoneCall = "OneONoneCall",
|
|
15
|
+
GroupCall = "GroupCall",
|
|
16
|
+
VideoConference = "VideoConference",
|
|
17
|
+
LiveStreaming = "LiveStreaming",
|
|
18
18
|
}
|
|
19
19
|
declare enum VideoResolution {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
_180P = "180p",
|
|
21
|
+
_360P = "360p",
|
|
22
|
+
_480P = "480p",
|
|
23
|
+
_720P = "720p",
|
|
24
24
|
}
|
|
25
25
|
export enum VideoMixinLayoutType {
|
|
26
|
-
|
|
26
|
+
AutoLayout = 0,
|
|
27
27
|
}
|
|
28
28
|
export enum VideoMixinOutputResolution {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
_180P = "180p",
|
|
30
|
+
_360P = "360p",
|
|
31
|
+
_540P = "540p",
|
|
32
|
+
_720P = "720p",
|
|
33
|
+
_1080P = "1080p",
|
|
34
34
|
}
|
|
35
35
|
declare interface ScenarioConfig {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
36
|
+
[ScenarioModel.LiveStreaming]: {
|
|
37
|
+
role: LiveRole;
|
|
38
|
+
liveStreamingMode: LiveStreamingMode;
|
|
39
|
+
enableVideoMixing?: boolean;
|
|
40
|
+
// videoMixingLayout?: VideoMixinLayoutType;
|
|
41
|
+
videoMixingOutputResolution?: VideoMixinOutputResolution;
|
|
42
|
+
};
|
|
43
|
+
[ScenarioModel.OneONoneCall]: {
|
|
44
|
+
role: LiveRole;
|
|
45
|
+
};
|
|
46
|
+
[ScenarioModel.GroupCall]: {
|
|
47
|
+
role: LiveRole;
|
|
48
|
+
};
|
|
49
|
+
[ScenarioModel.VideoConference]: {
|
|
50
|
+
role: LiveRole;
|
|
51
|
+
};
|
|
52
52
|
}
|
|
53
53
|
declare enum LiveStreamingMode {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
/**
|
|
55
|
+
* @Deprecated StanderLive will be removed, please use LiveStreaming instead
|
|
56
|
+
*/
|
|
57
|
+
StanderLive = "LiveStreaming",
|
|
58
|
+
/**
|
|
59
|
+
* @Deprecated PremiumLive will be removed, please use InteractiveLiveStreaming instead
|
|
60
|
+
*/
|
|
61
|
+
PremiumLive = "InteractiveLiveStreaming",
|
|
62
|
+
LiveStreaming = "LiveStreaming", // CDN
|
|
63
|
+
InteractiveLiveStreaming = "InteractiveLiveStreaming", // L3
|
|
64
|
+
RealTimeLive = "RealTimeLive", //RTC
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
declare enum ConsoleLevel {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
Debug = "Debug",
|
|
69
|
+
Info = "Info",
|
|
70
|
+
Warning = "Warning",
|
|
71
|
+
Error = "Error",
|
|
72
|
+
None = "None",
|
|
73
73
|
}
|
|
74
74
|
declare interface InRoomMessageInfo {
|
|
75
75
|
fromUser: ZegoUser
|
|
@@ -173,6 +173,8 @@ declare interface ZegoCloudRoomConfig {
|
|
|
173
173
|
onReturnToHomeScreenClicked?: () => void // Callback for click return to home screen button.
|
|
174
174
|
addInRoomMessageMessageAttributes?: () => any // add in room message message attribute. return custom message attribute.
|
|
175
175
|
customMessageUI?: (msg: InRoomMessageInfo) => Element // Custom message UI. need return Element.
|
|
176
|
+
// 2.1.0
|
|
177
|
+
language?: ZegoUIKitLanguage
|
|
176
178
|
}
|
|
177
179
|
|
|
178
180
|
export enum RightPanelExpandedType {
|
|
@@ -249,6 +251,8 @@ declare interface ZegoCallInvitationConfig {
|
|
|
249
251
|
onIncomingCallTimeout?: (callID: string, caller: ZegoUser) => void;
|
|
250
252
|
//When the call exceeds the fixed time, if there are still callees who do not respond, the caller will receive the callback, convert the internal data into corresponding data and throw it.
|
|
251
253
|
onOutgoingCallTimeout?: (callID: string, callees: ZegoUser[]) => void;
|
|
254
|
+
// 2.1.0
|
|
255
|
+
language?: ZegoUIKitLanguage
|
|
252
256
|
}
|
|
253
257
|
|
|
254
258
|
declare interface ZegoSignalingPluginNotificationConfig {
|
|
@@ -272,6 +276,11 @@ declare enum MessagePriority {
|
|
|
272
276
|
Medium = 2,
|
|
273
277
|
High = 3,
|
|
274
278
|
}
|
|
279
|
+
|
|
280
|
+
export enum ZegoUIKitLanguage {
|
|
281
|
+
CHS = "zh-CN", // 中文
|
|
282
|
+
ENGLISH = "en-US", // 英文
|
|
283
|
+
}
|
|
275
284
|
export declare class ZegoUIKitPrebuilt {
|
|
276
285
|
static core: ZegoCloudRTCCore | undefined;
|
|
277
286
|
static _instance: ZegoUIKitPrebuilt;
|
|
@@ -329,4 +338,5 @@ export declare class ZegoUIKitPrebuilt {
|
|
|
329
338
|
sendInRoomCommand(command: string, toUserIDs: string[]): Promise<boolean>;
|
|
330
339
|
sendInRoomCustomCommand(command: object, priority?: MessagePriority): Promise<ZegoSignalingInRoomCommandMessage>;
|
|
331
340
|
hangUp(): void;
|
|
341
|
+
setLanguage(language: ZegoUIKitLanguage): void;
|
|
332
342
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zegocloud/zego-uikit-prebuilt",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.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": "./index.d.ts",
|
|
17
17
|
"access": "public"
|
|
18
|
-
}
|
|
18
|
+
}
|