@100mslive/roomkit-react 0.3.8-alpha.0 → 0.3.8-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-CTZXD762.js → HLSView-HUMJOIWO.js} +2 -2
- package/dist/Prebuilt/common/constants.d.ts +1 -0
- package/dist/Prebuilt/common/hooks.d.ts +10 -0
- package/dist/Prebuilt/components/FullPageProgress.d.ts +8 -0
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +3 -3
- package/dist/{chunk-NDLMRKFR.js → chunk-IDAPJGWC.js} +263 -279
- package/dist/chunk-IDAPJGWC.js.map +7 -0
- package/dist/index.cjs.js +190 -207
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +74 -49
- package/dist/meta.esbuild.json +84 -59
- package/package.json +6 -6
- package/src/Prebuilt/common/constants.ts +1 -0
- package/src/Prebuilt/common/hooks.ts +72 -1
- package/src/Prebuilt/components/AppData/AppData.tsx +1 -0
- package/src/Prebuilt/components/ConferenceScreen.tsx +0 -2
- package/src/Prebuilt/components/{FullPageProgress.jsx → FullPageProgress.tsx} +10 -1
- package/src/Prebuilt/components/Header/StreamActions.tsx +3 -25
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +4 -26
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +1 -11
- package/src/Prebuilt/components/Preview/PreviewJoin.tsx +4 -9
- package/src/Prebuilt/components/Preview/PreviewScreen.tsx +0 -3
- package/src/Prebuilt/components/Settings/StartRecording.jsx +4 -37
- package/src/Prebuilt/components/Toast/ToastConfig.jsx +0 -22
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +3 -3
- package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +3 -1
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +23 -7
- package/src/Prebuilt/components/VirtualBackground/VBToggle.tsx +5 -3
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +0 -2
- package/dist/chunk-NDLMRKFR.js.map +0 -7
- /package/dist/{HLSView-CTZXD762.js.map → HLSView-HUMJOIWO.js.map} +0 -0
package/dist/meta.esbuild.json
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
"format": "esm"
|
27
27
|
},
|
28
28
|
"src/Prebuilt/common/constants.ts": {
|
29
|
-
"bytes":
|
29
|
+
"bytes": 4444,
|
30
30
|
"imports": [
|
31
31
|
{
|
32
32
|
"path": "@100mslive/react-sdk",
|
@@ -2241,7 +2241,7 @@
|
|
2241
2241
|
"format": "esm"
|
2242
2242
|
},
|
2243
2243
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
2244
|
-
"bytes":
|
2244
|
+
"bytes": 5935,
|
2245
2245
|
"imports": [
|
2246
2246
|
{
|
2247
2247
|
"path": "react",
|
@@ -2962,7 +2962,7 @@
|
|
2962
2962
|
"format": "esm"
|
2963
2963
|
},
|
2964
2964
|
"src/Prebuilt/common/hooks.ts": {
|
2965
|
-
"bytes":
|
2965
|
+
"bytes": 7493,
|
2966
2966
|
"imports": [
|
2967
2967
|
{
|
2968
2968
|
"path": "react",
|
@@ -2989,6 +2989,11 @@
|
|
2989
2989
|
"kind": "import-statement",
|
2990
2990
|
"external": true
|
2991
2991
|
},
|
2992
|
+
{
|
2993
|
+
"path": "src/Prebuilt/components/Toast/ToastManager.js",
|
2994
|
+
"kind": "import-statement",
|
2995
|
+
"original": "../components/Toast/ToastManager"
|
2996
|
+
},
|
2992
2997
|
{
|
2993
2998
|
"path": "src/Theme/index.tsx",
|
2994
2999
|
"kind": "import-statement",
|
@@ -2999,6 +3004,11 @@
|
|
2999
3004
|
"kind": "import-statement",
|
3000
3005
|
"original": "../provider/roomLayoutProvider"
|
3001
3006
|
},
|
3007
|
+
{
|
3008
|
+
"path": "src/Prebuilt/components/AppData/useUISettings.js",
|
3009
|
+
"kind": "import-statement",
|
3010
|
+
"original": "../components/AppData/useUISettings"
|
3011
|
+
},
|
3002
3012
|
{
|
3003
3013
|
"path": "src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts",
|
3004
3014
|
"kind": "import-statement",
|
@@ -3829,7 +3839,7 @@
|
|
3829
3839
|
"format": "esm"
|
3830
3840
|
},
|
3831
3841
|
"src/Prebuilt/components/Settings/StartRecording.jsx": {
|
3832
|
-
"bytes":
|
3842
|
+
"bytes": 3609,
|
3833
3843
|
"imports": [
|
3834
3844
|
{
|
3835
3845
|
"path": "react",
|
@@ -3862,9 +3872,9 @@
|
|
3862
3872
|
"original": "../Toast/ToastManager"
|
3863
3873
|
},
|
3864
3874
|
{
|
3865
|
-
"path": "src/Prebuilt/
|
3875
|
+
"path": "src/Prebuilt/common/hooks.ts",
|
3866
3876
|
"kind": "import-statement",
|
3867
|
-
"original": "
|
3877
|
+
"original": "../../common/hooks"
|
3868
3878
|
},
|
3869
3879
|
{
|
3870
3880
|
"path": "src/Prebuilt/common/constants.ts",
|
@@ -4930,7 +4940,7 @@
|
|
4930
4940
|
"format": "esm"
|
4931
4941
|
},
|
4932
4942
|
"src/Prebuilt/components/Header/StreamActions.tsx": {
|
4933
|
-
"bytes":
|
4943
|
+
"bytes": 8719,
|
4934
4944
|
"imports": [
|
4935
4945
|
{
|
4936
4946
|
"path": "react",
|
@@ -4983,20 +4993,15 @@
|
|
4983
4993
|
"original": "../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen"
|
4984
4994
|
},
|
4985
4995
|
{
|
4986
|
-
"path": "src/Prebuilt/
|
4996
|
+
"path": "src/Prebuilt/common/hooks.ts",
|
4987
4997
|
"kind": "import-statement",
|
4988
|
-
"original": "
|
4998
|
+
"original": "../../common/hooks"
|
4989
4999
|
},
|
4990
5000
|
{
|
4991
5001
|
"path": "src/Prebuilt/common/utils.js",
|
4992
5002
|
"kind": "import-statement",
|
4993
5003
|
"original": "../../common/utils"
|
4994
5004
|
},
|
4995
|
-
{
|
4996
|
-
"path": "src/Prebuilt/common/constants.ts",
|
4997
|
-
"kind": "import-statement",
|
4998
|
-
"original": "../../common/constants"
|
4999
|
-
},
|
5000
5005
|
{
|
5001
5006
|
"path": "<define:process.env>",
|
5002
5007
|
"kind": "import-statement",
|
@@ -5201,7 +5206,7 @@
|
|
5201
5206
|
"format": "esm"
|
5202
5207
|
},
|
5203
5208
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
|
5204
|
-
"bytes":
|
5209
|
+
"bytes": 12214,
|
5205
5210
|
"imports": [
|
5206
5211
|
{
|
5207
5212
|
"path": "react",
|
@@ -5765,7 +5770,7 @@
|
|
5765
5770
|
"format": "esm"
|
5766
5771
|
},
|
5767
5772
|
"src/Prebuilt/components/VirtualBackground/VBToggle.tsx": {
|
5768
|
-
"bytes":
|
5773
|
+
"bytes": 1253,
|
5769
5774
|
"imports": [
|
5770
5775
|
{
|
5771
5776
|
"path": "react",
|
@@ -5782,6 +5787,11 @@
|
|
5782
5787
|
"kind": "import-statement",
|
5783
5788
|
"external": true
|
5784
5789
|
},
|
5790
|
+
{
|
5791
|
+
"path": "src/Loading/index.ts",
|
5792
|
+
"kind": "import-statement",
|
5793
|
+
"original": "../../../Loading"
|
5794
|
+
},
|
5785
5795
|
{
|
5786
5796
|
"path": "src/Tooltip/index.ts",
|
5787
5797
|
"kind": "import-statement",
|
@@ -9213,7 +9223,7 @@
|
|
9213
9223
|
"format": "esm"
|
9214
9224
|
},
|
9215
9225
|
"src/Prebuilt/components/VirtualBackground/VBOption.tsx": {
|
9216
|
-
"bytes":
|
9226
|
+
"bytes": 1246,
|
9217
9227
|
"imports": [
|
9218
9228
|
{
|
9219
9229
|
"path": "react",
|
@@ -9285,7 +9295,7 @@
|
|
9285
9295
|
"format": "esm"
|
9286
9296
|
},
|
9287
9297
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
9288
|
-
"bytes":
|
9298
|
+
"bytes": 2732,
|
9289
9299
|
"imports": [
|
9290
9300
|
{
|
9291
9301
|
"path": "@100mslive/hms-virtual-background",
|
@@ -9317,13 +9327,18 @@
|
|
9317
9327
|
"format": "esm"
|
9318
9328
|
},
|
9319
9329
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
9320
|
-
"bytes":
|
9330
|
+
"bytes": 7852,
|
9321
9331
|
"imports": [
|
9322
9332
|
{
|
9323
9333
|
"path": "react",
|
9324
9334
|
"kind": "import-statement",
|
9325
9335
|
"external": true
|
9326
9336
|
},
|
9337
|
+
{
|
9338
|
+
"path": "react-use",
|
9339
|
+
"kind": "import-statement",
|
9340
|
+
"external": true
|
9341
|
+
},
|
9327
9342
|
{
|
9328
9343
|
"path": "../hms-video-store/dist/index.js",
|
9329
9344
|
"kind": "import-statement",
|
@@ -9549,8 +9564,8 @@
|
|
9549
9564
|
],
|
9550
9565
|
"format": "esm"
|
9551
9566
|
},
|
9552
|
-
"src/Prebuilt/components/FullPageProgress.
|
9553
|
-
"bytes":
|
9567
|
+
"src/Prebuilt/components/FullPageProgress.tsx": {
|
9568
|
+
"bytes": 625,
|
9554
9569
|
"imports": [
|
9555
9570
|
{
|
9556
9571
|
"path": "react",
|
@@ -9572,6 +9587,11 @@
|
|
9572
9587
|
"kind": "import-statement",
|
9573
9588
|
"original": "../../Text"
|
9574
9589
|
},
|
9590
|
+
{
|
9591
|
+
"path": "../../Theme",
|
9592
|
+
"kind": "import-statement",
|
9593
|
+
"external": true
|
9594
|
+
},
|
9575
9595
|
{
|
9576
9596
|
"path": "<define:process.env>",
|
9577
9597
|
"kind": "import-statement",
|
@@ -9637,7 +9657,7 @@
|
|
9637
9657
|
"format": "esm"
|
9638
9658
|
},
|
9639
9659
|
"src/Prebuilt/components/Preview/PreviewJoin.tsx": {
|
9640
|
-
"bytes":
|
9660
|
+
"bytes": 9876,
|
9641
9661
|
"imports": [
|
9642
9662
|
{
|
9643
9663
|
"path": "react",
|
@@ -9700,7 +9720,7 @@
|
|
9700
9720
|
"original": "../Connection/TileConnection"
|
9701
9721
|
},
|
9702
9722
|
{
|
9703
|
-
"path": "src/Prebuilt/components/FullPageProgress.
|
9723
|
+
"path": "src/Prebuilt/components/FullPageProgress.tsx",
|
9704
9724
|
"kind": "import-statement",
|
9705
9725
|
"original": "../FullPageProgress"
|
9706
9726
|
},
|
@@ -11639,7 +11659,7 @@
|
|
11639
11659
|
"format": "esm"
|
11640
11660
|
},
|
11641
11661
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx": {
|
11642
|
-
"bytes":
|
11662
|
+
"bytes": 4494,
|
11643
11663
|
"imports": [
|
11644
11664
|
{
|
11645
11665
|
"path": "react",
|
@@ -11662,7 +11682,7 @@
|
|
11662
11682
|
"external": true
|
11663
11683
|
},
|
11664
11684
|
{
|
11665
|
-
"path": "src/Prebuilt/components/FullPageProgress.
|
11685
|
+
"path": "src/Prebuilt/components/FullPageProgress.tsx",
|
11666
11686
|
"kind": "import-statement",
|
11667
11687
|
"original": "../components/FullPageProgress"
|
11668
11688
|
},
|
@@ -11955,7 +11975,7 @@
|
|
11955
11975
|
"format": "esm"
|
11956
11976
|
},
|
11957
11977
|
"src/Prebuilt/components/ConferenceScreen.tsx": {
|
11958
|
-
"bytes":
|
11978
|
+
"bytes": 8044,
|
11959
11979
|
"imports": [
|
11960
11980
|
{
|
11961
11981
|
"path": "react",
|
@@ -12028,7 +12048,7 @@
|
|
12028
12048
|
"original": "./EmojiReaction"
|
12029
12049
|
},
|
12030
12050
|
{
|
12031
|
-
"path": "src/Prebuilt/components/FullPageProgress.
|
12051
|
+
"path": "src/Prebuilt/components/FullPageProgress.tsx",
|
12032
12052
|
"kind": "import-statement",
|
12033
12053
|
"original": "./FullPageProgress"
|
12034
12054
|
},
|
@@ -12486,7 +12506,7 @@
|
|
12486
12506
|
"format": "esm"
|
12487
12507
|
},
|
12488
12508
|
"src/Prebuilt/components/Toast/ToastConfig.jsx": {
|
12489
|
-
"bytes":
|
12509
|
+
"bytes": 5213,
|
12490
12510
|
"imports": [
|
12491
12511
|
{
|
12492
12512
|
"path": "react",
|
@@ -12635,7 +12655,7 @@
|
|
12635
12655
|
"format": "esm"
|
12636
12656
|
},
|
12637
12657
|
"src/Prebuilt/components/Notifications/PeerNotifications.tsx": {
|
12638
|
-
"bytes":
|
12658
|
+
"bytes": 1643,
|
12639
12659
|
"imports": [
|
12640
12660
|
{
|
12641
12661
|
"path": "react",
|
@@ -12971,7 +12991,7 @@
|
|
12971
12991
|
"format": "esm"
|
12972
12992
|
},
|
12973
12993
|
"src/Prebuilt/components/Preview/PreviewScreen.tsx": {
|
12974
|
-
"bytes":
|
12994
|
+
"bytes": 1597,
|
12975
12995
|
"imports": [
|
12976
12996
|
{
|
12977
12997
|
"path": "react",
|
@@ -12999,7 +13019,7 @@
|
|
12999
13019
|
"original": "../../provider/roomLayoutProvider"
|
13000
13020
|
},
|
13001
13021
|
{
|
13002
|
-
"path": "src/Prebuilt/components/FullPageProgress.
|
13022
|
+
"path": "src/Prebuilt/components/FullPageProgress.tsx",
|
13003
13023
|
"kind": "import-statement",
|
13004
13024
|
"original": "../FullPageProgress"
|
13005
13025
|
},
|
@@ -13780,7 +13800,7 @@
|
|
13780
13800
|
"dist/index.js": {
|
13781
13801
|
"imports": [
|
13782
13802
|
{
|
13783
|
-
"path": "dist/chunk-
|
13803
|
+
"path": "dist/chunk-IDAPJGWC.js",
|
13784
13804
|
"kind": "import-statement"
|
13785
13805
|
}
|
13786
13806
|
],
|
@@ -13853,16 +13873,16 @@
|
|
13853
13873
|
"inputs": {},
|
13854
13874
|
"bytes": 1822
|
13855
13875
|
},
|
13856
|
-
"dist/HLSView-
|
13876
|
+
"dist/HLSView-HUMJOIWO.js.map": {
|
13857
13877
|
"imports": [],
|
13858
13878
|
"exports": [],
|
13859
13879
|
"inputs": {},
|
13860
13880
|
"bytes": 100708
|
13861
13881
|
},
|
13862
|
-
"dist/HLSView-
|
13882
|
+
"dist/HLSView-HUMJOIWO.js": {
|
13863
13883
|
"imports": [
|
13864
13884
|
{
|
13865
|
-
"path": "dist/chunk-
|
13885
|
+
"path": "dist/chunk-IDAPJGWC.js",
|
13866
13886
|
"kind": "import-statement"
|
13867
13887
|
},
|
13868
13888
|
{
|
@@ -14098,13 +14118,13 @@
|
|
14098
14118
|
},
|
14099
14119
|
"bytes": 61939
|
14100
14120
|
},
|
14101
|
-
"dist/chunk-
|
14121
|
+
"dist/chunk-IDAPJGWC.js.map": {
|
14102
14122
|
"imports": [],
|
14103
14123
|
"exports": [],
|
14104
14124
|
"inputs": {},
|
14105
|
-
"bytes":
|
14125
|
+
"bytes": 3200609
|
14106
14126
|
},
|
14107
|
-
"dist/chunk-
|
14127
|
+
"dist/chunk-IDAPJGWC.js": {
|
14108
14128
|
"imports": [
|
14109
14129
|
{
|
14110
14130
|
"path": "react",
|
@@ -16141,6 +16161,11 @@
|
|
16141
16161
|
"kind": "import-statement",
|
16142
16162
|
"external": true
|
16143
16163
|
},
|
16164
|
+
{
|
16165
|
+
"path": "react-use",
|
16166
|
+
"kind": "import-statement",
|
16167
|
+
"external": true
|
16168
|
+
},
|
16144
16169
|
{
|
16145
16170
|
"path": "@100mslive/hms-virtual-background",
|
16146
16171
|
"kind": "import-statement",
|
@@ -16487,7 +16512,7 @@
|
|
16487
16512
|
"external": true
|
16488
16513
|
},
|
16489
16514
|
{
|
16490
|
-
"path": "dist/HLSView-
|
16515
|
+
"path": "dist/HLSView-HUMJOIWO.js",
|
16491
16516
|
"kind": "dynamic-import"
|
16492
16517
|
},
|
16493
16518
|
{
|
@@ -16968,7 +16993,7 @@
|
|
16968
16993
|
],
|
16969
16994
|
"inputs": {
|
16970
16995
|
"<define:process.env>": {
|
16971
|
-
"bytesInOutput":
|
16996
|
+
"bytesInOutput": 18287
|
16972
16997
|
},
|
16973
16998
|
"../../node_modules/lodash/lodash.js": {
|
16974
16999
|
"bytesInOutput": 224310
|
@@ -17016,7 +17041,7 @@
|
|
17016
17041
|
"bytesInOutput": 5061
|
17017
17042
|
},
|
17018
17043
|
"src/Prebuilt/common/constants.ts": {
|
17019
|
-
"bytesInOutput":
|
17044
|
+
"bytesInOutput": 3585
|
17020
17045
|
},
|
17021
17046
|
"src/Theme/ThemeProvider.tsx": {
|
17022
17047
|
"bytesInOutput": 1926
|
@@ -17223,7 +17248,7 @@
|
|
17223
17248
|
"bytesInOutput": 7828
|
17224
17249
|
},
|
17225
17250
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
17226
|
-
"bytesInOutput":
|
17251
|
+
"bytesInOutput": 5511
|
17227
17252
|
},
|
17228
17253
|
"src/Prebuilt/components/Settings/LayoutSettings.tsx": {
|
17229
17254
|
"bytesInOutput": 2705
|
@@ -17268,7 +17293,7 @@
|
|
17268
17293
|
"bytesInOutput": 4698
|
17269
17294
|
},
|
17270
17295
|
"src/Prebuilt/components/ConferenceScreen.tsx": {
|
17271
|
-
"bytesInOutput":
|
17296
|
+
"bytesInOutput": 7207
|
17272
17297
|
},
|
17273
17298
|
"src/Prebuilt/components/Footer/Footer.tsx": {
|
17274
17299
|
"bytesInOutput": 3209
|
@@ -17319,7 +17344,7 @@
|
|
17319
17344
|
"bytesInOutput": 606
|
17320
17345
|
},
|
17321
17346
|
"src/Prebuilt/common/hooks.ts": {
|
17322
|
-
"bytesInOutput":
|
17347
|
+
"bytesInOutput": 5950
|
17323
17348
|
},
|
17324
17349
|
"src/Prebuilt/components/Leave/LeaveRoom.tsx": {
|
17325
17350
|
"bytesInOutput": 2454
|
@@ -17352,7 +17377,7 @@
|
|
17352
17377
|
"bytesInOutput": 178
|
17353
17378
|
},
|
17354
17379
|
"src/Prebuilt/components/PIP/PIPComponent.jsx": {
|
17355
|
-
"bytesInOutput":
|
17380
|
+
"bytesInOutput": 2359
|
17356
17381
|
},
|
17357
17382
|
"src/Prebuilt/components/PIP/PIPManager.js": {
|
17358
17383
|
"bytesInOutput": 9164
|
@@ -17367,7 +17392,7 @@
|
|
17367
17392
|
"bytesInOutput": 6098
|
17368
17393
|
},
|
17369
17394
|
"src/Prebuilt/components/Settings/StartRecording.jsx": {
|
17370
|
-
"bytesInOutput":
|
17395
|
+
"bytesInOutput": 3629
|
17371
17396
|
},
|
17372
17397
|
"src/Prebuilt/components/Streaming/ResolutionInput.jsx": {
|
17373
17398
|
"bytesInOutput": 2942
|
@@ -17400,10 +17425,10 @@
|
|
17400
17425
|
"bytesInOutput": 1826
|
17401
17426
|
},
|
17402
17427
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
|
17403
|
-
"bytesInOutput":
|
17428
|
+
"bytesInOutput": 10876
|
17404
17429
|
},
|
17405
17430
|
"src/Prebuilt/components/Header/StreamActions.tsx": {
|
17406
|
-
"bytesInOutput":
|
17431
|
+
"bytesInOutput": 9480
|
17407
17432
|
},
|
17408
17433
|
"../hms-video-store/dist/index.js": {
|
17409
17434
|
"bytesInOutput": 49010
|
@@ -17502,7 +17527,7 @@
|
|
17502
17527
|
"bytesInOutput": 823
|
17503
17528
|
},
|
17504
17529
|
"src/Prebuilt/components/VirtualBackground/VBToggle.tsx": {
|
17505
|
-
"bytesInOutput":
|
17530
|
+
"bytesInOutput": 1179
|
17506
17531
|
},
|
17507
17532
|
"src/Prebuilt/components/Footer/ChatToggle.tsx": {
|
17508
17533
|
"bytesInOutput": 1445
|
@@ -17544,7 +17569,7 @@
|
|
17544
17569
|
"bytesInOutput": 3077
|
17545
17570
|
},
|
17546
17571
|
"src/Prebuilt/components/Preview/PreviewJoin.tsx": {
|
17547
|
-
"bytesInOutput":
|
17572
|
+
"bytesInOutput": 9772
|
17548
17573
|
},
|
17549
17574
|
"src/Prebuilt/layouts/SidePane.tsx": {
|
17550
17575
|
"bytesInOutput": 6436
|
@@ -17715,16 +17740,16 @@
|
|
17715
17740
|
"bytesInOutput": 1050
|
17716
17741
|
},
|
17717
17742
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
17718
|
-
"bytesInOutput":
|
17743
|
+
"bytesInOutput": 7825
|
17719
17744
|
},
|
17720
17745
|
"src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
|
17721
17746
|
"bytesInOutput": 1157
|
17722
17747
|
},
|
17723
17748
|
"src/Prebuilt/components/VirtualBackground/VBOption.tsx": {
|
17724
|
-
"bytesInOutput":
|
17749
|
+
"bytesInOutput": 1154
|
17725
17750
|
},
|
17726
17751
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
17727
|
-
"bytesInOutput":
|
17752
|
+
"bytesInOutput": 3443
|
17728
17753
|
},
|
17729
17754
|
"src/Prebuilt/components/VirtualBackground/constants.ts": {
|
17730
17755
|
"bytesInOutput": 714
|
@@ -17732,8 +17757,8 @@
|
|
17732
17757
|
"src/Prebuilt/components/Chip.tsx": {
|
17733
17758
|
"bytesInOutput": 778
|
17734
17759
|
},
|
17735
|
-
"src/Prebuilt/components/FullPageProgress.
|
17736
|
-
"bytesInOutput":
|
17760
|
+
"src/Prebuilt/components/FullPageProgress.tsx": {
|
17761
|
+
"bytesInOutput": 580
|
17737
17762
|
},
|
17738
17763
|
"src/Prebuilt/components/Preview/PreviewForm.tsx": {
|
17739
17764
|
"bytesInOutput": 2721
|
@@ -17796,7 +17821,7 @@
|
|
17796
17821
|
"bytesInOutput": 3099
|
17797
17822
|
},
|
17798
17823
|
"src/Prebuilt/layouts/EmbedView.jsx": {
|
17799
|
-
"bytesInOutput":
|
17824
|
+
"bytesInOutput": 2787
|
17800
17825
|
},
|
17801
17826
|
"src/Prebuilt/layouts/PDFView.jsx": {
|
17802
17827
|
"bytesInOutput": 1457
|
@@ -17865,13 +17890,13 @@
|
|
17865
17890
|
"bytesInOutput": 1983
|
17866
17891
|
},
|
17867
17892
|
"src/Prebuilt/components/Toast/ToastConfig.jsx": {
|
17868
|
-
"bytesInOutput":
|
17893
|
+
"bytesInOutput": 6413
|
17869
17894
|
},
|
17870
17895
|
"src/Prebuilt/components/Notifications/InitErrorModal.tsx": {
|
17871
17896
|
"bytesInOutput": 1596
|
17872
17897
|
},
|
17873
17898
|
"src/Prebuilt/components/Notifications/PeerNotifications.tsx": {
|
17874
|
-
"bytesInOutput":
|
17899
|
+
"bytesInOutput": 1428
|
17875
17900
|
},
|
17876
17901
|
"src/Prebuilt/components/Notifications/PermissionErrorModal.tsx": {
|
17877
17902
|
"bytesInOutput": 4534
|
@@ -17928,7 +17953,7 @@
|
|
17928
17953
|
"bytesInOutput": 651
|
17929
17954
|
}
|
17930
17955
|
},
|
17931
|
-
"bytes":
|
17956
|
+
"bytes": 1310169
|
17932
17957
|
}
|
17933
17958
|
}
|
17934
17959
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.3.8-alpha.
|
13
|
+
"version": "0.3.8-alpha.1",
|
14
14
|
"author": "100ms",
|
15
15
|
"license": "MIT",
|
16
16
|
"repository": {
|
@@ -82,11 +82,11 @@
|
|
82
82
|
"react": ">=17.0.2 <19.0.0"
|
83
83
|
},
|
84
84
|
"dependencies": {
|
85
|
-
"@100mslive/hls-player": "0.3.8-alpha.
|
85
|
+
"@100mslive/hls-player": "0.3.8-alpha.1",
|
86
86
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
87
|
-
"@100mslive/hms-virtual-background": "1.13.8-alpha.
|
88
|
-
"@100mslive/react-icons": "0.10.8-alpha.
|
89
|
-
"@100mslive/react-sdk": "0.10.8-alpha.
|
87
|
+
"@100mslive/hms-virtual-background": "1.13.8-alpha.1",
|
88
|
+
"@100mslive/react-icons": "0.10.8-alpha.1",
|
89
|
+
"@100mslive/react-sdk": "0.10.8-alpha.1",
|
90
90
|
"@100mslive/types-prebuilt": "0.12.8",
|
91
91
|
"@emoji-mart/data": "^1.0.6",
|
92
92
|
"@emoji-mart/react": "^1.0.1",
|
@@ -122,5 +122,5 @@
|
|
122
122
|
"uuid": "^8.3.2",
|
123
123
|
"worker-timers": "^7.0.40"
|
124
124
|
},
|
125
|
-
"gitHead": "
|
125
|
+
"gitHead": "569f8b3923f8f47aaf9ecd7d91b9fe1e52c39695"
|
126
126
|
}
|
@@ -3,20 +3,27 @@ import { useMedia } from 'react-use';
|
|
3
3
|
import { HMSHLSPlayer } from '@100mslive/hls-player';
|
4
4
|
import { JoinForm_JoinBtnType } from '@100mslive/types-prebuilt/elements/join_form';
|
5
5
|
import {
|
6
|
+
HMSRecording,
|
6
7
|
parsedUserAgent,
|
7
8
|
selectAvailableRoleNames,
|
8
9
|
selectIsConnectedToRoom,
|
9
10
|
selectPeerCount,
|
10
11
|
selectPeerMetadata,
|
11
12
|
selectPeers,
|
13
|
+
selectRecordingState,
|
12
14
|
selectRemotePeers,
|
15
|
+
useHMSActions,
|
13
16
|
useHMSStore,
|
14
17
|
useHMSVanillaStore,
|
15
18
|
} from '@100mslive/react-sdk';
|
19
|
+
// @ts-ignore: No implicit any
|
20
|
+
import { ToastManager } from '../components/Toast/ToastManager';
|
16
21
|
import { config } from '../../Theme';
|
17
22
|
import { useRoomLayout } from '../provider/roomLayoutProvider';
|
23
|
+
// @ts-ignore
|
24
|
+
import { useSetAppDataByKey } from '../components/AppData/useUISettings';
|
18
25
|
import { useRoomLayoutConferencingScreen } from '../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
|
19
|
-
import { CHAT_SELECTOR } from './constants';
|
26
|
+
import { APP_DATA, CHAT_SELECTOR, RTMP_RECORD_DEFAULT_RESOLUTION } from './constants';
|
20
27
|
/**
|
21
28
|
* Hook to execute a callback when alone in room(after a certain 5d of time)
|
22
29
|
* @param {number} thresholdMs The threshold(in ms) after which the callback is executed,
|
@@ -147,3 +154,67 @@ export const useKeyboardHandler = (isPaused: boolean, hlsPlayer: HMSHLSPlayer) =
|
|
147
154
|
|
148
155
|
return handleKeyEvent;
|
149
156
|
};
|
157
|
+
export interface RTMPRecordingResolution {
|
158
|
+
width: number;
|
159
|
+
height: number;
|
160
|
+
}
|
161
|
+
export const useRecordingHandler = () => {
|
162
|
+
const hmsActions = useHMSActions();
|
163
|
+
const recordingState: HMSRecording = useHMSStore(selectRecordingState);
|
164
|
+
const [isRecordingLoading, setIsRecordingLoading] = useState(false);
|
165
|
+
const [recordingStarted, setRecordingState] = useSetAppDataByKey(APP_DATA.recordingStarted);
|
166
|
+
useEffect(() => {
|
167
|
+
if (recordingState.browser.error && recordingStarted) {
|
168
|
+
setRecordingState(false);
|
169
|
+
}
|
170
|
+
}, [recordingStarted, recordingState.browser.error, setRecordingState]);
|
171
|
+
const startRecording = useCallback(
|
172
|
+
async (resolution: RTMPRecordingResolution | null = null) => {
|
173
|
+
try {
|
174
|
+
setRecordingState(true);
|
175
|
+
setIsRecordingLoading(true);
|
176
|
+
await hmsActions.startRTMPOrRecording({
|
177
|
+
resolution: getResolution(resolution),
|
178
|
+
record: true,
|
179
|
+
});
|
180
|
+
} catch (error) {
|
181
|
+
const err = error as Error;
|
182
|
+
if (err.message.includes('stream already running')) {
|
183
|
+
ToastManager.addToast({
|
184
|
+
title: 'Recording already running',
|
185
|
+
variant: 'error',
|
186
|
+
});
|
187
|
+
} else {
|
188
|
+
ToastManager.addToast({
|
189
|
+
title: err.message,
|
190
|
+
variant: 'error',
|
191
|
+
});
|
192
|
+
}
|
193
|
+
setRecordingState(false);
|
194
|
+
}
|
195
|
+
setIsRecordingLoading(false);
|
196
|
+
},
|
197
|
+
[hmsActions, setRecordingState],
|
198
|
+
);
|
199
|
+
return {
|
200
|
+
recordingStarted,
|
201
|
+
startRecording,
|
202
|
+
isRecordingLoading,
|
203
|
+
};
|
204
|
+
};
|
205
|
+
|
206
|
+
export function getResolution(
|
207
|
+
recordingResolution: RTMPRecordingResolution | null,
|
208
|
+
): RTMPRecordingResolution | undefined {
|
209
|
+
if (!recordingResolution) {
|
210
|
+
return undefined;
|
211
|
+
}
|
212
|
+
const resolution: RTMPRecordingResolution = RTMP_RECORD_DEFAULT_RESOLUTION;
|
213
|
+
if (recordingResolution.width) {
|
214
|
+
resolution.width = recordingResolution.width;
|
215
|
+
}
|
216
|
+
if (recordingResolution.height) {
|
217
|
+
resolution.height = recordingResolution.height;
|
218
|
+
}
|
219
|
+
return resolution;
|
220
|
+
}
|
@@ -62,6 +62,7 @@ const initialAppData = {
|
|
62
62
|
[APP_DATA.minimiseInset]: false,
|
63
63
|
[APP_DATA.activeScreensharePeerId]: '',
|
64
64
|
[APP_DATA.disableNotifications]: false,
|
65
|
+
[APP_DATA.loadingEffects]: false,
|
65
66
|
[APP_DATA.background]: 'none',
|
66
67
|
[APP_DATA.pollState]: {
|
67
68
|
[POLL_STATE.pollInView]: '',
|
@@ -22,7 +22,6 @@ import { useHMSPrebuiltContext } from '../AppContext';
|
|
22
22
|
import { VideoStreamingSection } from '../layouts/VideoStreamingSection';
|
23
23
|
// @ts-ignore: No implicit Any
|
24
24
|
import { EmojiReaction } from './EmojiReaction';
|
25
|
-
// @ts-ignore: No implicit Any
|
26
25
|
import FullPageProgress from './FullPageProgress';
|
27
26
|
import { Header } from './Header';
|
28
27
|
import { PreviousRoleInMetadata } from './PreviousRoleInMetadata';
|
@@ -34,7 +33,6 @@ import {
|
|
34
33
|
// @ts-ignore: No implicit Any
|
35
34
|
import { useAuthToken, useSetAppDataByKey } from './AppData/useUISettings';
|
36
35
|
import { useLandscapeHLSStream, useMobileHLSStream } from '../common/hooks';
|
37
|
-
// @ts-ignore: No implicit Any
|
38
36
|
import { APP_DATA, isAndroid, isIOS, isIPadOS } from '../common/constants';
|
39
37
|
|
40
38
|
export const ConferenceScreen = () => {
|
@@ -2,8 +2,17 @@ import React from 'react';
|
|
2
2
|
import { Flex } from '../../Layout';
|
3
3
|
import { Loading } from '../../Loading';
|
4
4
|
import { Text } from '../../Text';
|
5
|
+
import { CSS } from '../../Theme';
|
5
6
|
|
6
|
-
const FullPageProgress = ({
|
7
|
+
const FullPageProgress = ({
|
8
|
+
loaderColor = '$primary_default',
|
9
|
+
text = '',
|
10
|
+
css = {},
|
11
|
+
}: {
|
12
|
+
loaderColor?: string;
|
13
|
+
text?: string;
|
14
|
+
css?: CSS;
|
15
|
+
}) => (
|
7
16
|
<Flex direction="column" justify="center" align="center" css={{ size: '100%', color: loaderColor, ...css }}>
|
8
17
|
<Loading color="currentColor" size={100} />
|
9
18
|
{text ? <Text css={{ mt: '$10', color: '$on_surface_high' }}>{text}</Text> : null}
|