@zegocloud/zego-uikit-prebuilt 1.3.7 → 1.3.9
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/liveStream.html +2 -2
- package/package.json +1 -1
- package/videoConference.html +2 -3
- package/view/pages/ZegoRoom/components/zegoUserList.d.ts +3 -0
- package/view/pages/ZegoRoom/components/zegoVideoPlayer.d.ts +3 -0
- package/view/pages/ZegoRoom/index.d.ts +1 -0
- package/view/pages/ZegoRoomMobile/components/zegoUserList.d.ts +3 -0
- package/zego-uikit-prebuilt.js +33 -22
package/liveStream.html
CHANGED
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
const roomID = 'room01';
|
|
36
36
|
const userID = Math.floor(Math.random() * 10000) + "";
|
|
37
37
|
const userName = "userName" + userID;
|
|
38
|
-
const appID =
|
|
39
|
-
const serverSecret = "
|
|
38
|
+
const appID = ;
|
|
39
|
+
const serverSecret = "";
|
|
40
40
|
const TOKEN = generatePrebuiltToken(appID, serverSecret, roomID, userID, userName);
|
|
41
41
|
|
|
42
42
|
// You can assign different roles based on url parameters.
|
package/package.json
CHANGED
package/videoConference.html
CHANGED
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
const roomID = 'room01';
|
|
27
27
|
const userID = Math.floor(Math.random() * 10000) + "";
|
|
28
28
|
const userName = "userName" + userID;
|
|
29
|
-
const appID =
|
|
30
|
-
const serverSecret = "
|
|
29
|
+
const appID = ;
|
|
30
|
+
const serverSecret = "";
|
|
31
31
|
const TOKEN = generatePrebuiltToken(appID, serverSecret, roomID, userID, userName);
|
|
32
32
|
|
|
33
33
|
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
zp.joinRoom({
|
|
37
37
|
container: document.querySelector("#root"),
|
|
38
38
|
sharedLinks: [{
|
|
39
|
-
name: 'Join as Host',
|
|
40
39
|
url: window.location.origin + window.location.pathname + '?roomID=' + roomID,
|
|
41
40
|
}],
|
|
42
41
|
scenario: {
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { ZegoCloudRTCCore } from "../../../../modules";
|
|
3
3
|
import { ZegoCloudUser, ZegoCloudUserList } from "../../../../modules/tools/UserListManager";
|
|
4
4
|
import { SoundLevelMap } from "../../../../model";
|
|
5
|
+
import ShowPCManageContext, { ShowPCManageType } from "../context/showManage";
|
|
5
6
|
export declare class ZegoUserList extends React.PureComponent<{
|
|
6
7
|
core: ZegoCloudRTCCore;
|
|
7
8
|
userList: ZegoCloudUserList;
|
|
@@ -9,6 +10,8 @@ export declare class ZegoUserList extends React.PureComponent<{
|
|
|
9
10
|
handleSetPin: Function;
|
|
10
11
|
soundLevel?: SoundLevelMap;
|
|
11
12
|
}> {
|
|
13
|
+
static contextType?: React.Context<ShowPCManageType>;
|
|
14
|
+
context: React.ContextType<typeof ShowPCManageContext>;
|
|
12
15
|
componentDidMount(): void;
|
|
13
16
|
componentWillUnmount(): void;
|
|
14
17
|
onBodyClick(e: Event): void;
|
|
@@ -17,6 +17,9 @@ export declare class VideoPlayer extends React.PureComponent<{
|
|
|
17
17
|
static contextType?: React.Context<ShowPCManageType>;
|
|
18
18
|
context: React.ContextType<typeof ShowPCManageContext>;
|
|
19
19
|
video: HTMLVideoElement | null;
|
|
20
|
+
state: {
|
|
21
|
+
hovered: boolean;
|
|
22
|
+
};
|
|
20
23
|
componentWillUnmount(): void;
|
|
21
24
|
render(): React.ReactNode;
|
|
22
25
|
}
|
|
@@ -32,6 +32,7 @@ export declare class ZegoRoom extends React.PureComponent<ZegoBrowserCheckProp>
|
|
|
32
32
|
screenSharingStream: undefined | MediaStream;
|
|
33
33
|
screenSharingUserList: ZegoCloudUserList;
|
|
34
34
|
showZegoSettings: boolean;
|
|
35
|
+
haveUnReadMsg: boolean;
|
|
35
36
|
};
|
|
36
37
|
settingsRef: RefObject<HTMLDivElement>;
|
|
37
38
|
moreRef: RefObject<HTMLDivElement>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { ChangeEvent } from "react";
|
|
2
2
|
import { ZegoCloudRTCCore } from "../../../../modules";
|
|
3
3
|
import { ZegoCloudUser, ZegoCloudUserList } from "../../../../modules/tools/UserListManager";
|
|
4
|
+
import ShowManageContext, { ShowManageType } from "../context/showManage";
|
|
4
5
|
export declare class ZegoUserList extends React.PureComponent<{
|
|
5
6
|
userList: ZegoCloudUserList;
|
|
6
7
|
core: ZegoCloudRTCCore;
|
|
@@ -9,6 +10,8 @@ export declare class ZegoUserList extends React.PureComponent<{
|
|
|
9
10
|
state: {
|
|
10
11
|
message: string;
|
|
11
12
|
};
|
|
13
|
+
static contextType?: React.Context<ShowManageType>;
|
|
14
|
+
context: React.ContextType<typeof ShowManageContext>;
|
|
12
15
|
messageInput(event: ChangeEvent<HTMLInputElement>): void;
|
|
13
16
|
isShownPin(user: ZegoCloudUser): boolean;
|
|
14
17
|
render(): React.ReactNode;
|