@100mslive/roomkit-react 0.1.19-alpha.2 → 0.1.20-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-7X5BVAZE.js → HLSView-BWR4T6PI.js} +2 -2
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -0
- package/dist/{chunk-H3B4ARYV.js → chunk-SYBH2G3R.js} +17 -8
- package/dist/chunk-SYBH2G3R.js.map +7 -0
- package/dist/index.cjs.js +17 -6
- package/dist/index.cjs.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +25 -15
- package/dist/meta.esbuild.json +32 -22
- package/package.json +6 -6
- package/src/Prebuilt/App.tsx +2 -0
- package/src/Prebuilt/AppStateContext.tsx +2 -0
- package/src/Prebuilt/components/Chat/Chat.tsx +2 -2
- package/src/Prebuilt/components/Footer/PaginatedParticipants.tsx +1 -1
- package/src/Prebuilt/components/VirtualBackground/VBHandler.tsx +5 -0
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +4 -1
- package/dist/chunk-H3B4ARYV.js.map +0 -7
- /package/dist/{HLSView-7X5BVAZE.js.map → HLSView-BWR4T6PI.js.map} +0 -0
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
@@ -7957,7 +7957,7 @@
|
|
7957
7957
|
"format": "esm"
|
7958
7958
|
},
|
7959
7959
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
7960
|
-
"bytes":
|
7960
|
+
"bytes": 3558,
|
7961
7961
|
"imports": [
|
7962
7962
|
{
|
7963
7963
|
"path": "react",
|
@@ -8043,7 +8043,7 @@
|
|
8043
8043
|
"format": "esm"
|
8044
8044
|
},
|
8045
8045
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx": {
|
8046
|
-
"bytes":
|
8046
|
+
"bytes": 4446,
|
8047
8047
|
"imports": [
|
8048
8048
|
{
|
8049
8049
|
"path": "react",
|
@@ -8648,7 +8648,7 @@
|
|
8648
8648
|
"format": "esm"
|
8649
8649
|
},
|
8650
8650
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
8651
|
-
"bytes":
|
8651
|
+
"bytes": 2178,
|
8652
8652
|
"imports": [
|
8653
8653
|
{
|
8654
8654
|
"path": "@100mslive/hms-virtual-background",
|
@@ -8680,7 +8680,7 @@
|
|
8680
8680
|
"format": "esm"
|
8681
8681
|
},
|
8682
8682
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
8683
|
-
"bytes":
|
8683
|
+
"bytes": 5568,
|
8684
8684
|
"imports": [
|
8685
8685
|
{
|
8686
8686
|
"path": "react",
|
@@ -11088,7 +11088,7 @@
|
|
11088
11088
|
"format": "esm"
|
11089
11089
|
},
|
11090
11090
|
"src/Prebuilt/AppStateContext.tsx": {
|
11091
|
-
"bytes":
|
11091
|
+
"bytes": 2655,
|
11092
11092
|
"imports": [
|
11093
11093
|
{
|
11094
11094
|
"path": "react",
|
@@ -11105,6 +11105,11 @@
|
|
11105
11105
|
"kind": "import-statement",
|
11106
11106
|
"external": true
|
11107
11107
|
},
|
11108
|
+
{
|
11109
|
+
"path": "src/Prebuilt/components/VirtualBackground/VBHandler.tsx",
|
11110
|
+
"kind": "import-statement",
|
11111
|
+
"original": "./components/VirtualBackground/VBHandler"
|
11112
|
+
},
|
11108
11113
|
{
|
11109
11114
|
"path": "src/Prebuilt/provider/roomLayoutProvider/index.tsx",
|
11110
11115
|
"kind": "import-statement",
|
@@ -12059,7 +12064,7 @@
|
|
12059
12064
|
"format": "esm"
|
12060
12065
|
},
|
12061
12066
|
"src/Prebuilt/App.tsx": {
|
12062
|
-
"bytes":
|
12067
|
+
"bytes": 10446,
|
12063
12068
|
"imports": [
|
12064
12069
|
{
|
12065
12070
|
"path": "react",
|
@@ -12136,6 +12141,11 @@
|
|
12136
12141
|
"kind": "import-statement",
|
12137
12142
|
"original": "./components/Toast/ToastContainer"
|
12138
12143
|
},
|
12144
|
+
{
|
12145
|
+
"path": "src/Prebuilt/components/VirtualBackground/VBHandler.tsx",
|
12146
|
+
"kind": "import-statement",
|
12147
|
+
"original": "./components/VirtualBackground/VBHandler"
|
12148
|
+
},
|
12139
12149
|
{
|
12140
12150
|
"path": "src/Prebuilt/provider/roomLayoutProvider/index.tsx",
|
12141
12151
|
"kind": "import-statement",
|
@@ -12463,7 +12473,7 @@
|
|
12463
12473
|
"imports": [],
|
12464
12474
|
"exports": [],
|
12465
12475
|
"inputs": {},
|
12466
|
-
"bytes":
|
12476
|
+
"bytes": 3097427
|
12467
12477
|
},
|
12468
12478
|
"dist/index.cjs.js": {
|
12469
12479
|
"imports": [
|
@@ -15112,7 +15122,7 @@
|
|
15112
15122
|
"entryPoint": "src/index.ts",
|
15113
15123
|
"inputs": {
|
15114
15124
|
"<define:process.env>": {
|
15115
|
-
"bytesInOutput":
|
15125
|
+
"bytesInOutput": 18644
|
15116
15126
|
},
|
15117
15127
|
"src/Theme/base.config.ts": {
|
15118
15128
|
"bytesInOutput": 6104
|
@@ -15811,10 +15821,10 @@
|
|
15811
15821
|
"bytesInOutput": 6156
|
15812
15822
|
},
|
15813
15823
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
15814
|
-
"bytesInOutput":
|
15824
|
+
"bytesInOutput": 4375
|
15815
15825
|
},
|
15816
15826
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx": {
|
15817
|
-
"bytesInOutput":
|
15827
|
+
"bytesInOutput": 5344
|
15818
15828
|
},
|
15819
15829
|
"src/Prebuilt/components/ChatSettings.tsx": {
|
15820
15830
|
"bytesInOutput": 3060
|
@@ -15844,13 +15854,13 @@
|
|
15844
15854
|
"bytesInOutput": 1628
|
15845
15855
|
},
|
15846
15856
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
15847
|
-
"bytesInOutput":
|
15857
|
+
"bytesInOutput": 3545
|
15848
15858
|
},
|
15849
15859
|
"src/Prebuilt/components/VirtualBackground/constants.ts": {
|
15850
15860
|
"bytesInOutput": 908
|
15851
15861
|
},
|
15852
15862
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
15853
|
-
"bytesInOutput":
|
15863
|
+
"bytesInOutput": 6755
|
15854
15864
|
},
|
15855
15865
|
"src/Prebuilt/layouts/SidePane.tsx": {
|
15856
15866
|
"bytesInOutput": 5399
|
@@ -16009,7 +16019,7 @@
|
|
16009
16019
|
"bytesInOutput": 789
|
16010
16020
|
},
|
16011
16021
|
"src/Prebuilt/AppStateContext.tsx": {
|
16012
|
-
"bytesInOutput":
|
16022
|
+
"bytesInOutput": 2792
|
16013
16023
|
},
|
16014
16024
|
"src/Prebuilt/components/LeaveScreen.tsx": {
|
16015
16025
|
"bytesInOutput": 2925
|
@@ -16084,7 +16094,7 @@
|
|
16084
16094
|
"bytesInOutput": 2225
|
16085
16095
|
},
|
16086
16096
|
"src/Prebuilt/App.tsx": {
|
16087
|
-
"bytesInOutput":
|
16097
|
+
"bytesInOutput": 9532
|
16088
16098
|
},
|
16089
16099
|
"src/Prebuilt/index.ts": {
|
16090
16100
|
"bytesInOutput": 131
|
@@ -16096,7 +16106,7 @@
|
|
16096
16106
|
"bytesInOutput": 2930
|
16097
16107
|
}
|
16098
16108
|
},
|
16099
|
-
"bytes":
|
16109
|
+
"bytes": 1441400
|
16100
16110
|
}
|
16101
16111
|
}
|
16102
16112
|
}
|
package/dist/meta.esbuild.json
CHANGED
@@ -7957,7 +7957,7 @@
|
|
7957
7957
|
"format": "esm"
|
7958
7958
|
},
|
7959
7959
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
7960
|
-
"bytes":
|
7960
|
+
"bytes": 3558,
|
7961
7961
|
"imports": [
|
7962
7962
|
{
|
7963
7963
|
"path": "react",
|
@@ -8043,7 +8043,7 @@
|
|
8043
8043
|
"format": "esm"
|
8044
8044
|
},
|
8045
8045
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx": {
|
8046
|
-
"bytes":
|
8046
|
+
"bytes": 4446,
|
8047
8047
|
"imports": [
|
8048
8048
|
{
|
8049
8049
|
"path": "react",
|
@@ -8648,7 +8648,7 @@
|
|
8648
8648
|
"format": "esm"
|
8649
8649
|
},
|
8650
8650
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
8651
|
-
"bytes":
|
8651
|
+
"bytes": 2178,
|
8652
8652
|
"imports": [
|
8653
8653
|
{
|
8654
8654
|
"path": "@100mslive/hms-virtual-background",
|
@@ -8680,7 +8680,7 @@
|
|
8680
8680
|
"format": "esm"
|
8681
8681
|
},
|
8682
8682
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
8683
|
-
"bytes":
|
8683
|
+
"bytes": 5568,
|
8684
8684
|
"imports": [
|
8685
8685
|
{
|
8686
8686
|
"path": "react",
|
@@ -11088,7 +11088,7 @@
|
|
11088
11088
|
"format": "esm"
|
11089
11089
|
},
|
11090
11090
|
"src/Prebuilt/AppStateContext.tsx": {
|
11091
|
-
"bytes":
|
11091
|
+
"bytes": 2655,
|
11092
11092
|
"imports": [
|
11093
11093
|
{
|
11094
11094
|
"path": "react",
|
@@ -11105,6 +11105,11 @@
|
|
11105
11105
|
"kind": "import-statement",
|
11106
11106
|
"external": true
|
11107
11107
|
},
|
11108
|
+
{
|
11109
|
+
"path": "src/Prebuilt/components/VirtualBackground/VBHandler.tsx",
|
11110
|
+
"kind": "import-statement",
|
11111
|
+
"original": "./components/VirtualBackground/VBHandler"
|
11112
|
+
},
|
11108
11113
|
{
|
11109
11114
|
"path": "src/Prebuilt/provider/roomLayoutProvider/index.tsx",
|
11110
11115
|
"kind": "import-statement",
|
@@ -12059,7 +12064,7 @@
|
|
12059
12064
|
"format": "esm"
|
12060
12065
|
},
|
12061
12066
|
"src/Prebuilt/App.tsx": {
|
12062
|
-
"bytes":
|
12067
|
+
"bytes": 10446,
|
12063
12068
|
"imports": [
|
12064
12069
|
{
|
12065
12070
|
"path": "react",
|
@@ -12136,6 +12141,11 @@
|
|
12136
12141
|
"kind": "import-statement",
|
12137
12142
|
"original": "./components/Toast/ToastContainer"
|
12138
12143
|
},
|
12144
|
+
{
|
12145
|
+
"path": "src/Prebuilt/components/VirtualBackground/VBHandler.tsx",
|
12146
|
+
"kind": "import-statement",
|
12147
|
+
"original": "./components/VirtualBackground/VBHandler"
|
12148
|
+
},
|
12139
12149
|
{
|
12140
12150
|
"path": "src/Prebuilt/provider/roomLayoutProvider/index.tsx",
|
12141
12151
|
"kind": "import-statement",
|
@@ -12468,7 +12478,7 @@
|
|
12468
12478
|
"dist/index.js": {
|
12469
12479
|
"imports": [
|
12470
12480
|
{
|
12471
|
-
"path": "dist/chunk-
|
12481
|
+
"path": "dist/chunk-SYBH2G3R.js",
|
12472
12482
|
"kind": "import-statement"
|
12473
12483
|
}
|
12474
12484
|
],
|
@@ -12540,16 +12550,16 @@
|
|
12540
12550
|
"inputs": {},
|
12541
12551
|
"bytes": 1798
|
12542
12552
|
},
|
12543
|
-
"dist/HLSView-
|
12553
|
+
"dist/HLSView-BWR4T6PI.js.map": {
|
12544
12554
|
"imports": [],
|
12545
12555
|
"exports": [],
|
12546
12556
|
"inputs": {},
|
12547
12557
|
"bytes": 58021
|
12548
12558
|
},
|
12549
|
-
"dist/HLSView-
|
12559
|
+
"dist/HLSView-BWR4T6PI.js": {
|
12550
12560
|
"imports": [
|
12551
12561
|
{
|
12552
|
-
"path": "dist/chunk-
|
12562
|
+
"path": "dist/chunk-SYBH2G3R.js",
|
12553
12563
|
"kind": "import-statement"
|
12554
12564
|
},
|
12555
12565
|
{
|
@@ -12713,13 +12723,13 @@
|
|
12713
12723
|
},
|
12714
12724
|
"bytes": 36449
|
12715
12725
|
},
|
12716
|
-
"dist/chunk-
|
12726
|
+
"dist/chunk-SYBH2G3R.js.map": {
|
12717
12727
|
"imports": [],
|
12718
12728
|
"exports": [],
|
12719
12729
|
"inputs": {},
|
12720
|
-
"bytes":
|
12730
|
+
"bytes": 3034799
|
12721
12731
|
},
|
12722
|
-
"dist/chunk-
|
12732
|
+
"dist/chunk-SYBH2G3R.js": {
|
12723
12733
|
"imports": [
|
12724
12734
|
{
|
12725
12735
|
"path": "react",
|
@@ -14922,7 +14932,7 @@
|
|
14922
14932
|
"external": true
|
14923
14933
|
},
|
14924
14934
|
{
|
14925
|
-
"path": "dist/HLSView-
|
14935
|
+
"path": "dist/HLSView-BWR4T6PI.js",
|
14926
14936
|
"kind": "dynamic-import"
|
14927
14937
|
},
|
14928
14938
|
{
|
@@ -15333,7 +15343,7 @@
|
|
15333
15343
|
],
|
15334
15344
|
"inputs": {
|
15335
15345
|
"<define:process.env>": {
|
15336
|
-
"bytesInOutput":
|
15346
|
+
"bytesInOutput": 18644
|
15337
15347
|
},
|
15338
15348
|
"../../node_modules/lodash/lodash.js": {
|
15339
15349
|
"bytesInOutput": 224380
|
@@ -15582,7 +15592,7 @@
|
|
15582
15592
|
"bytesInOutput": 887
|
15583
15593
|
},
|
15584
15594
|
"src/Prebuilt/App.tsx": {
|
15585
|
-
"bytesInOutput":
|
15595
|
+
"bytesInOutput": 7625
|
15586
15596
|
},
|
15587
15597
|
"src/Prebuilt/components/AppData/AppData.tsx": {
|
15588
15598
|
"bytesInOutput": 4365
|
@@ -15969,7 +15979,7 @@
|
|
15969
15979
|
"bytesInOutput": 7277
|
15970
15980
|
},
|
15971
15981
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
15972
|
-
"bytesInOutput":
|
15982
|
+
"bytesInOutput": 3442
|
15973
15983
|
},
|
15974
15984
|
"src/Prebuilt/components/Chat/ChatBody.tsx": {
|
15975
15985
|
"bytesInOutput": 13096
|
@@ -16020,7 +16030,7 @@
|
|
16020
16030
|
"bytesInOutput": 543
|
16021
16031
|
},
|
16022
16032
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx": {
|
16023
|
-
"bytesInOutput":
|
16033
|
+
"bytesInOutput": 4205
|
16024
16034
|
},
|
16025
16035
|
"src/Prebuilt/components/ChatSettings.tsx": {
|
16026
16036
|
"bytesInOutput": 2469
|
@@ -16041,7 +16051,7 @@
|
|
16041
16051
|
"bytesInOutput": 1050
|
16042
16052
|
},
|
16043
16053
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
16044
|
-
"bytesInOutput":
|
16054
|
+
"bytesInOutput": 5520
|
16045
16055
|
},
|
16046
16056
|
"src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
|
16047
16057
|
"bytesInOutput": 1157
|
@@ -16050,7 +16060,7 @@
|
|
16050
16060
|
"bytesInOutput": 1161
|
16051
16061
|
},
|
16052
16062
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
16053
|
-
"bytesInOutput":
|
16063
|
+
"bytesInOutput": 2848
|
16054
16064
|
},
|
16055
16065
|
"src/Prebuilt/components/VirtualBackground/constants.ts": {
|
16056
16066
|
"bytesInOutput": 714
|
@@ -16158,7 +16168,7 @@
|
|
16158
16168
|
"bytesInOutput": 2185
|
16159
16169
|
},
|
16160
16170
|
"src/Prebuilt/AppStateContext.tsx": {
|
16161
|
-
"bytesInOutput":
|
16171
|
+
"bytesInOutput": 2157
|
16162
16172
|
},
|
16163
16173
|
"src/Prebuilt/components/hooks/useRedirectToLeave.tsx": {
|
16164
16174
|
"bytesInOutput": 491
|
@@ -16236,7 +16246,7 @@
|
|
16236
16246
|
"bytesInOutput": 418
|
16237
16247
|
}
|
16238
16248
|
},
|
16239
|
-
"bytes":
|
16249
|
+
"bytes": 1223576
|
16240
16250
|
}
|
16241
16251
|
}
|
16242
16252
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.1.
|
13
|
+
"version": "0.1.20-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.29-alpha.0",
|
80
|
+
"@100mslive/hms-virtual-background": "1.11.29-alpha.0",
|
81
|
+
"@100mslive/react-icons": "0.8.29-alpha.0",
|
82
|
+
"@100mslive/react-sdk": "0.8.29-alpha.0",
|
83
83
|
"@100mslive/types-prebuilt": "0.12.5",
|
84
84
|
"@emoji-mart/data": "^1.0.6",
|
85
85
|
"@emoji-mart/react": "^1.0.1",
|
@@ -115,5 +115,5 @@
|
|
115
115
|
"uuid": "^8.3.2",
|
116
116
|
"worker-timers": "^7.0.40"
|
117
117
|
},
|
118
|
-
"gitHead": "
|
118
|
+
"gitHead": "50a9752eb57f926467526f5afdc6cb5213886730"
|
119
119
|
}
|
package/src/Prebuilt/App.tsx
CHANGED
@@ -25,6 +25,7 @@ import { Notifications } from './components/Notifications';
|
|
25
25
|
import { PreviewScreen } from './components/Preview/PreviewScreen';
|
26
26
|
// @ts-ignore: No implicit Any
|
27
27
|
import { ToastContainer } from './components/Toast/ToastContainer';
|
28
|
+
import { VBHandler } from './components/VirtualBackground/VBHandler';
|
28
29
|
import { RoomLayoutContext, RoomLayoutProvider, useRoomLayout } from './provider/roomLayoutProvider';
|
29
30
|
import { DialogContainerProvider } from '../context/DialogContext';
|
30
31
|
import { Box } from '../Layout';
|
@@ -124,6 +125,7 @@ export const HMSPrebuilt = React.forwardRef<HMSPrebuiltRefType, HMSPrebuiltProps
|
|
124
125
|
// leave room when component unmounts
|
125
126
|
useEffect(
|
126
127
|
() => () => {
|
128
|
+
VBHandler.reset();
|
127
129
|
reactiveStore?.current?.hmsActions.leave();
|
128
130
|
},
|
129
131
|
[],
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import React, { useContext, useEffect } from 'react';
|
2
2
|
import { usePreviousDistinct } from 'react-use';
|
3
3
|
import { HMSRoomState, selectRoomState, useHMSStore } from '@100mslive/react-sdk';
|
4
|
+
import { VBHandler } from './components/VirtualBackground/VBHandler';
|
4
5
|
import { useRoomLayout } from './provider/roomLayoutProvider';
|
5
6
|
import { useRedirectToLeave } from './components/hooks/useRedirectToLeave';
|
6
7
|
import {
|
@@ -60,6 +61,7 @@ export const useAppStateManager = () => {
|
|
60
61
|
) {
|
61
62
|
const goTo = isPreviewScreenEnabled ? PrebuiltStates.PREVIEW : PrebuiltStates.MEETING;
|
62
63
|
setActiveState(isLeaveScreenEnabled ? PrebuiltStates.LEAVE : goTo);
|
64
|
+
VBHandler.reset();
|
63
65
|
redirectToLeave(1000); // to clear toasts after 1 second
|
64
66
|
} else if (!prevRoomState && roomState === HMSRoomState.Disconnected) {
|
65
67
|
setActiveState(isPreviewScreenEnabled ? PrebuiltStates.PREVIEW : PrebuiltStates.MEETING);
|
@@ -70,10 +70,10 @@ const NewMessageIndicator = ({
|
|
70
70
|
}
|
71
71
|
// @ts-ignore
|
72
72
|
const outerElement = listRef.current._outerRef;
|
73
|
-
|
74
|
-
if (outerElement.scrollHeight === listRef.current.state.scrollOffset + outerElement.offsetHeight) {
|
73
|
+
if (outerElement.clientHeight + outerElement.scrollTop + outerElement.offsetTop >= outerElement.scrollHeight) {
|
75
74
|
return null;
|
76
75
|
}
|
76
|
+
|
77
77
|
return (
|
78
78
|
<Flex
|
79
79
|
justify="center"
|
@@ -69,7 +69,7 @@ const VirtualizedParticipantItem = React.memo(
|
|
69
69
|
export const PaginatedParticipants = ({ roleName, onBack }: { roleName: string; onBack: () => void }) => {
|
70
70
|
const { peers, total, hasNext, loadPeers, loadMorePeers } = usePaginatedParticipants({ role: roleName, limit: 20 });
|
71
71
|
const [search, setSearch] = useState<string>('');
|
72
|
-
const filteredPeers = peers.filter(p => p.name?.toLowerCase().includes(search));
|
72
|
+
const filteredPeers = peers.filter(p => p.name?.toLowerCase().includes(search?.toLowerCase()));
|
73
73
|
const isConnected = useHMSStore(selectIsConnectedToRoom);
|
74
74
|
const [ref, { width }] = useMeasure<HTMLDivElement>();
|
75
75
|
const height = ROW_HEIGHT * (filteredPeers.length + 1);
|
@@ -67,6 +67,11 @@ export class VBPlugin {
|
|
67
67
|
await this.hmsPlugin?.setBackground(HMSVirtualBackgroundTypes.NONE, HMSVirtualBackgroundTypes.NONE);
|
68
68
|
}
|
69
69
|
};
|
70
|
+
|
71
|
+
reset = () => {
|
72
|
+
this.effectsPlugin = undefined;
|
73
|
+
this.hmsPlugin = undefined;
|
74
|
+
};
|
70
75
|
}
|
71
76
|
|
72
77
|
export const VBHandler = new VBPlugin();
|
@@ -53,6 +53,9 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
|
|
53
53
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
54
54
|
|
55
55
|
useEffect(() => {
|
56
|
+
if (!track?.id) {
|
57
|
+
return;
|
58
|
+
}
|
56
59
|
if (!isPluginAdded) {
|
57
60
|
let vbObject = VBHandler.getVBObject();
|
58
61
|
if (!vbObject) {
|
@@ -68,7 +71,7 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
|
|
68
71
|
}
|
69
72
|
}
|
70
73
|
}
|
71
|
-
}, [hmsActions, role, isPluginAdded, isEffectsEnabled, effectsKey]);
|
74
|
+
}, [hmsActions, role, isPluginAdded, isEffectsEnabled, effectsKey, track?.id]);
|
72
75
|
|
73
76
|
useEffect(() => {
|
74
77
|
if (!isVideoOn) {
|