@100mslive/roomkit-react 0.1.10 → 0.1.11-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-7WXNI2WP.js → HLSView-TEG6Y6WL.js} +2 -2
- package/dist/{chunk-N5HPVHTK.js → chunk-VSALCLHF.js} +8 -8
- package/dist/{chunk-N5HPVHTK.js.map → chunk-VSALCLHF.js.map} +2 -2
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +7 -7
- package/dist/meta.esbuild.json +14 -14
- package/package.json +6 -6
- package/src/Prebuilt/components/Preview/PreviewForm.tsx +3 -2
- package/src/Prebuilt/components/hooks/useAutoStartStreaming.tsx +10 -3
- /package/dist/{HLSView-7WXNI2WP.js.map → HLSView-TEG6Y6WL.js.map} +0 -0
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
@@ -7469,7 +7469,7 @@
|
|
7469
7469
|
"format": "esm"
|
7470
7470
|
},
|
7471
7471
|
"src/Prebuilt/components/Preview/PreviewForm.tsx": {
|
7472
|
-
"bytes":
|
7472
|
+
"bytes": 2777,
|
7473
7473
|
"imports": [
|
7474
7474
|
{
|
7475
7475
|
"path": "react",
|
@@ -10256,7 +10256,7 @@
|
|
10256
10256
|
"format": "esm"
|
10257
10257
|
},
|
10258
10258
|
"src/Prebuilt/components/hooks/useAutoStartStreaming.tsx": {
|
10259
|
-
"bytes":
|
10259
|
+
"bytes": 1965,
|
10260
10260
|
"imports": [
|
10261
10261
|
{
|
10262
10262
|
"path": "react",
|
@@ -10701,7 +10701,7 @@
|
|
10701
10701
|
"imports": [],
|
10702
10702
|
"exports": [],
|
10703
10703
|
"inputs": {},
|
10704
|
-
"bytes":
|
10704
|
+
"bytes": 1105668
|
10705
10705
|
},
|
10706
10706
|
"dist/index.cjs.js": {
|
10707
10707
|
"imports": [
|
@@ -12985,7 +12985,7 @@
|
|
12985
12985
|
"entryPoint": "src/index.ts",
|
12986
12986
|
"inputs": {
|
12987
12987
|
"<define:process.env>": {
|
12988
|
-
"bytesInOutput":
|
12988
|
+
"bytesInOutput": 18619
|
12989
12989
|
},
|
12990
12990
|
"src/Theme/base.config.ts": {
|
12991
12991
|
"bytesInOutput": 6104
|
@@ -13624,7 +13624,7 @@
|
|
13624
13624
|
"bytesInOutput": 2165
|
13625
13625
|
},
|
13626
13626
|
"src/Prebuilt/components/Preview/PreviewForm.tsx": {
|
13627
|
-
"bytesInOutput":
|
13627
|
+
"bytesInOutput": 3383
|
13628
13628
|
},
|
13629
13629
|
"src/Prebuilt/components/Preview/PreviewJoin.tsx": {
|
13630
13630
|
"bytesInOutput": 12099
|
@@ -13822,7 +13822,7 @@
|
|
13822
13822
|
"bytesInOutput": 823
|
13823
13823
|
},
|
13824
13824
|
"src/Prebuilt/components/hooks/useAutoStartStreaming.tsx": {
|
13825
|
-
"bytesInOutput":
|
13825
|
+
"bytesInOutput": 2105
|
13826
13826
|
},
|
13827
13827
|
"src/Prebuilt/App.tsx": {
|
13828
13828
|
"bytesInOutput": 9863
|
@@ -13837,7 +13837,7 @@
|
|
13837
13837
|
"bytesInOutput": 2930
|
13838
13838
|
}
|
13839
13839
|
},
|
13840
|
-
"bytes":
|
13840
|
+
"bytes": 900697
|
13841
13841
|
}
|
13842
13842
|
}
|
13843
13843
|
}
|
package/dist/meta.esbuild.json
CHANGED
@@ -7469,7 +7469,7 @@
|
|
7469
7469
|
"format": "esm"
|
7470
7470
|
},
|
7471
7471
|
"src/Prebuilt/components/Preview/PreviewForm.tsx": {
|
7472
|
-
"bytes":
|
7472
|
+
"bytes": 2777,
|
7473
7473
|
"imports": [
|
7474
7474
|
{
|
7475
7475
|
"path": "react",
|
@@ -10256,7 +10256,7 @@
|
|
10256
10256
|
"format": "esm"
|
10257
10257
|
},
|
10258
10258
|
"src/Prebuilt/components/hooks/useAutoStartStreaming.tsx": {
|
10259
|
-
"bytes":
|
10259
|
+
"bytes": 1965,
|
10260
10260
|
"imports": [
|
10261
10261
|
{
|
10262
10262
|
"path": "react",
|
@@ -10706,7 +10706,7 @@
|
|
10706
10706
|
"dist/index.js": {
|
10707
10707
|
"imports": [
|
10708
10708
|
{
|
10709
|
-
"path": "dist/chunk-
|
10709
|
+
"path": "dist/chunk-VSALCLHF.js",
|
10710
10710
|
"kind": "import-statement"
|
10711
10711
|
}
|
10712
10712
|
],
|
@@ -10778,16 +10778,16 @@
|
|
10778
10778
|
"inputs": {},
|
10779
10779
|
"bytes": 1798
|
10780
10780
|
},
|
10781
|
-
"dist/HLSView-
|
10781
|
+
"dist/HLSView-TEG6Y6WL.js.map": {
|
10782
10782
|
"imports": [],
|
10783
10783
|
"exports": [],
|
10784
10784
|
"inputs": {},
|
10785
10785
|
"bytes": 53119
|
10786
10786
|
},
|
10787
|
-
"dist/HLSView-
|
10787
|
+
"dist/HLSView-TEG6Y6WL.js": {
|
10788
10788
|
"imports": [
|
10789
10789
|
{
|
10790
|
-
"path": "dist/chunk-
|
10790
|
+
"path": "dist/chunk-VSALCLHF.js",
|
10791
10791
|
"kind": "import-statement"
|
10792
10792
|
},
|
10793
10793
|
{
|
@@ -10938,13 +10938,13 @@
|
|
10938
10938
|
},
|
10939
10939
|
"bytes": 32956
|
10940
10940
|
},
|
10941
|
-
"dist/chunk-
|
10941
|
+
"dist/chunk-VSALCLHF.js.map": {
|
10942
10942
|
"imports": [],
|
10943
10943
|
"exports": [],
|
10944
10944
|
"inputs": {},
|
10945
|
-
"bytes":
|
10945
|
+
"bytes": 1042977
|
10946
10946
|
},
|
10947
|
-
"dist/chunk-
|
10947
|
+
"dist/chunk-VSALCLHF.js": {
|
10948
10948
|
"imports": [
|
10949
10949
|
{
|
10950
10950
|
"path": "react",
|
@@ -12837,7 +12837,7 @@
|
|
12837
12837
|
"external": true
|
12838
12838
|
},
|
12839
12839
|
{
|
12840
|
-
"path": "dist/HLSView-
|
12840
|
+
"path": "dist/HLSView-TEG6Y6WL.js",
|
12841
12841
|
"kind": "dynamic-import"
|
12842
12842
|
},
|
12843
12843
|
{
|
@@ -13201,7 +13201,7 @@
|
|
13201
13201
|
],
|
13202
13202
|
"inputs": {
|
13203
13203
|
"<define:process.env>": {
|
13204
|
-
"bytesInOutput":
|
13204
|
+
"bytesInOutput": 18512
|
13205
13205
|
},
|
13206
13206
|
"src/Button/Button.tsx": {
|
13207
13207
|
"bytesInOutput": 4304
|
@@ -13819,7 +13819,7 @@
|
|
13819
13819
|
"bytesInOutput": 1599
|
13820
13820
|
},
|
13821
13821
|
"src/Prebuilt/components/Preview/PreviewForm.tsx": {
|
13822
|
-
"bytesInOutput":
|
13822
|
+
"bytesInOutput": 2660
|
13823
13823
|
},
|
13824
13824
|
"src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx": {
|
13825
13825
|
"bytesInOutput": 2014
|
@@ -13969,13 +13969,13 @@
|
|
13969
13969
|
"bytesInOutput": 578
|
13970
13970
|
},
|
13971
13971
|
"src/Prebuilt/components/hooks/useAutoStartStreaming.tsx": {
|
13972
|
-
"bytesInOutput":
|
13972
|
+
"bytesInOutput": 1744
|
13973
13973
|
},
|
13974
13974
|
"src/Progress/index.tsx": {
|
13975
13975
|
"bytesInOutput": 391
|
13976
13976
|
}
|
13977
13977
|
},
|
13978
|
-
"bytes":
|
13978
|
+
"bytes": 700259
|
13979
13979
|
}
|
13980
13980
|
}
|
13981
13981
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.1.
|
13
|
+
"version": "0.1.11-alpha.0",
|
14
14
|
"author": "100ms",
|
15
15
|
"license": "MIT",
|
16
16
|
"files": [
|
@@ -76,10 +76,10 @@
|
|
76
76
|
"react": ">=17.0.2 <19.0.0"
|
77
77
|
},
|
78
78
|
"dependencies": {
|
79
|
-
"@100mslive/hls-player": "0.1.
|
80
|
-
"@100mslive/hms-virtual-background": "1.11.
|
81
|
-
"@100mslive/react-icons": "0.8.
|
82
|
-
"@100mslive/react-sdk": "0.8.
|
79
|
+
"@100mslive/hls-player": "0.1.20-alpha.0",
|
80
|
+
"@100mslive/hms-virtual-background": "1.11.20-alpha.0",
|
81
|
+
"@100mslive/react-icons": "0.8.20-alpha.0",
|
82
|
+
"@100mslive/react-sdk": "0.8.20-alpha.0",
|
83
83
|
"@100mslive/types-prebuilt": "0.12.0",
|
84
84
|
"@emoji-mart/data": "^1.0.6",
|
85
85
|
"@emoji-mart/react": "^1.0.1",
|
@@ -114,5 +114,5 @@
|
|
114
114
|
"uuid": "^8.3.2",
|
115
115
|
"worker-timers": "^7.0.40"
|
116
116
|
},
|
117
|
-
"gitHead": "
|
117
|
+
"gitHead": "a9b4d6c1bca655825e8fd4a8b07753912e213626"
|
118
118
|
}
|
@@ -27,7 +27,7 @@ const PreviewForm = ({
|
|
27
27
|
e.preventDefault();
|
28
28
|
};
|
29
29
|
const isMobile = useMedia(cssConfig.media.md);
|
30
|
-
const { isHLSRunning, isRTMPRunning,
|
30
|
+
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming();
|
31
31
|
|
32
32
|
const layout = useRoomLayout();
|
33
33
|
const { join_form: joinForm = {} } = layout?.screens?.preview?.default?.elements || {};
|
@@ -36,7 +36,8 @@ const PreviewForm = ({
|
|
36
36
|
joinForm?.join_btn_type === JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE &&
|
37
37
|
!isHLSRunning &&
|
38
38
|
!isRTMPRunning &&
|
39
|
-
!
|
39
|
+
!isHLSRecordingOn &&
|
40
|
+
!isBrowserRecordingOn;
|
40
41
|
|
41
42
|
return (
|
42
43
|
<Form
|
@@ -19,12 +19,19 @@ export const useAutoStartStreaming = () => {
|
|
19
19
|
const showStreamingUI = useShowStreamingUI();
|
20
20
|
const hmsActions = useHMSActions();
|
21
21
|
const isConnected = useHMSStore(selectIsConnectedToRoom);
|
22
|
-
const { isHLSRunning, isRTMPRunning,
|
22
|
+
const { isHLSRunning, isRTMPRunning, isHLSRecordingOn, isBrowserRecordingOn } = useRecordingStreaming();
|
23
23
|
const streamStartedRef = useRef(false);
|
24
24
|
|
25
25
|
const startHLS = useCallback(async () => {
|
26
26
|
try {
|
27
|
-
if (
|
27
|
+
if (
|
28
|
+
isHLSStarted ||
|
29
|
+
!showStreamingUI ||
|
30
|
+
isHLSRunning ||
|
31
|
+
isRTMPRunning ||
|
32
|
+
isHLSRecordingOn ||
|
33
|
+
isBrowserRecordingOn
|
34
|
+
) {
|
28
35
|
return;
|
29
36
|
}
|
30
37
|
setHLSStarted(true);
|
@@ -44,7 +51,7 @@ export const useAutoStartStreaming = () => {
|
|
44
51
|
}, [isHLSStarted, isHLSRunning]);
|
45
52
|
|
46
53
|
useEffect(() => {
|
47
|
-
if (!isConnected || streamStartedRef.current || !permissions?.hlsStreaming
|
54
|
+
if (!isConnected || streamStartedRef.current || !permissions?.hlsStreaming) {
|
48
55
|
return;
|
49
56
|
}
|
50
57
|
// Is a streaming kit and peer with streaming permissions joins
|
File without changes
|