@100mslive/roomkit-react 0.1.19-alpha.2 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-7X5BVAZE.js → HLSView-4L4OAX2K.js} +2 -2
- package/dist/Prebuilt/components/VirtualBackground/VBHandler.d.ts +1 -0
- package/dist/{chunk-H3B4ARYV.js → chunk-NHPPOGUF.js} +16 -8
- package/dist/chunk-NHPPOGUF.js.map +7 -0
- package/dist/index.cjs.js +15 -6
- package/dist/index.cjs.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +22 -17
- package/dist/meta.esbuild.json +29 -24
- package/package.json +6 -6
- 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-4L4OAX2K.js.map} +0 -0
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
@@ -4434,7 +4434,7 @@
|
|
4434
4434
|
"format": "cjs"
|
4435
4435
|
},
|
4436
4436
|
"../hms-video-web/dist/index.js": {
|
4437
|
-
"bytes":
|
4437
|
+
"bytes": 263148,
|
4438
4438
|
"imports": [
|
4439
4439
|
{
|
4440
4440
|
"path": "uuid",
|
@@ -4969,7 +4969,7 @@
|
|
4969
4969
|
"format": "esm"
|
4970
4970
|
},
|
4971
4971
|
"../hms-video-store/dist/index.js": {
|
4972
|
-
"bytes":
|
4972
|
+
"bytes": 68788,
|
4973
4973
|
"imports": [
|
4974
4974
|
{
|
4975
4975
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -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",
|
@@ -12463,7 +12468,7 @@
|
|
12463
12468
|
"imports": [],
|
12464
12469
|
"exports": [],
|
12465
12470
|
"inputs": {},
|
12466
|
-
"bytes":
|
12471
|
+
"bytes": 3097254
|
12467
12472
|
},
|
12468
12473
|
"dist/index.cjs.js": {
|
12469
12474
|
"imports": [
|
@@ -15112,7 +15117,7 @@
|
|
15112
15117
|
"entryPoint": "src/index.ts",
|
15113
15118
|
"inputs": {
|
15114
15119
|
"<define:process.env>": {
|
15115
|
-
"bytesInOutput":
|
15120
|
+
"bytesInOutput": 18549
|
15116
15121
|
},
|
15117
15122
|
"src/Theme/base.config.ts": {
|
15118
15123
|
"bytesInOutput": 6104
|
@@ -15583,7 +15588,7 @@
|
|
15583
15588
|
"bytesInOutput": 615
|
15584
15589
|
},
|
15585
15590
|
"../hms-video-web/dist/index.js": {
|
15586
|
-
"bytesInOutput":
|
15591
|
+
"bytesInOutput": 35316
|
15587
15592
|
},
|
15588
15593
|
"src/Prebuilt/common/utils.js": {
|
15589
15594
|
"bytesInOutput": 4395
|
@@ -15619,7 +15624,7 @@
|
|
15619
15624
|
"bytesInOutput": 2639
|
15620
15625
|
},
|
15621
15626
|
"../hms-video-store/dist/index.js": {
|
15622
|
-
"bytesInOutput":
|
15627
|
+
"bytesInOutput": 22049
|
15623
15628
|
},
|
15624
15629
|
"src/Prebuilt/components/hooks/useUnreadPollQuizPresent.tsx": {
|
15625
15630
|
"bytesInOutput": 1005
|
@@ -15811,10 +15816,10 @@
|
|
15811
15816
|
"bytesInOutput": 6156
|
15812
15817
|
},
|
15813
15818
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
15814
|
-
"bytesInOutput":
|
15819
|
+
"bytesInOutput": 4375
|
15815
15820
|
},
|
15816
15821
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx": {
|
15817
|
-
"bytesInOutput":
|
15822
|
+
"bytesInOutput": 5344
|
15818
15823
|
},
|
15819
15824
|
"src/Prebuilt/components/ChatSettings.tsx": {
|
15820
15825
|
"bytesInOutput": 3060
|
@@ -15844,13 +15849,13 @@
|
|
15844
15849
|
"bytesInOutput": 1628
|
15845
15850
|
},
|
15846
15851
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
15847
|
-
"bytesInOutput":
|
15852
|
+
"bytesInOutput": 3545
|
15848
15853
|
},
|
15849
15854
|
"src/Prebuilt/components/VirtualBackground/constants.ts": {
|
15850
15855
|
"bytesInOutput": 908
|
15851
15856
|
},
|
15852
15857
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
15853
|
-
"bytesInOutput":
|
15858
|
+
"bytesInOutput": 6755
|
15854
15859
|
},
|
15855
15860
|
"src/Prebuilt/layouts/SidePane.tsx": {
|
15856
15861
|
"bytesInOutput": 5399
|
@@ -16009,7 +16014,7 @@
|
|
16009
16014
|
"bytesInOutput": 789
|
16010
16015
|
},
|
16011
16016
|
"src/Prebuilt/AppStateContext.tsx": {
|
16012
|
-
"bytesInOutput":
|
16017
|
+
"bytesInOutput": 2792
|
16013
16018
|
},
|
16014
16019
|
"src/Prebuilt/components/LeaveScreen.tsx": {
|
16015
16020
|
"bytesInOutput": 2925
|
@@ -16096,7 +16101,7 @@
|
|
16096
16101
|
"bytesInOutput": 2930
|
16097
16102
|
}
|
16098
16103
|
},
|
16099
|
-
"bytes":
|
16104
|
+
"bytes": 1441228
|
16100
16105
|
}
|
16101
16106
|
}
|
16102
16107
|
}
|
package/dist/meta.esbuild.json
CHANGED
@@ -4434,7 +4434,7 @@
|
|
4434
4434
|
"format": "cjs"
|
4435
4435
|
},
|
4436
4436
|
"../hms-video-web/dist/index.js": {
|
4437
|
-
"bytes":
|
4437
|
+
"bytes": 263148,
|
4438
4438
|
"imports": [
|
4439
4439
|
{
|
4440
4440
|
"path": "uuid",
|
@@ -4969,7 +4969,7 @@
|
|
4969
4969
|
"format": "esm"
|
4970
4970
|
},
|
4971
4971
|
"../hms-video-store/dist/index.js": {
|
4972
|
-
"bytes":
|
4972
|
+
"bytes": 68788,
|
4973
4973
|
"imports": [
|
4974
4974
|
{
|
4975
4975
|
"path": "../../node_modules/reselect/es/index.js",
|
@@ -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",
|
@@ -12468,7 +12473,7 @@
|
|
12468
12473
|
"dist/index.js": {
|
12469
12474
|
"imports": [
|
12470
12475
|
{
|
12471
|
-
"path": "dist/chunk-
|
12476
|
+
"path": "dist/chunk-NHPPOGUF.js",
|
12472
12477
|
"kind": "import-statement"
|
12473
12478
|
}
|
12474
12479
|
],
|
@@ -12540,16 +12545,16 @@
|
|
12540
12545
|
"inputs": {},
|
12541
12546
|
"bytes": 1798
|
12542
12547
|
},
|
12543
|
-
"dist/HLSView-
|
12548
|
+
"dist/HLSView-4L4OAX2K.js.map": {
|
12544
12549
|
"imports": [],
|
12545
12550
|
"exports": [],
|
12546
12551
|
"inputs": {},
|
12547
12552
|
"bytes": 58021
|
12548
12553
|
},
|
12549
|
-
"dist/HLSView-
|
12554
|
+
"dist/HLSView-4L4OAX2K.js": {
|
12550
12555
|
"imports": [
|
12551
12556
|
{
|
12552
|
-
"path": "dist/chunk-
|
12557
|
+
"path": "dist/chunk-NHPPOGUF.js",
|
12553
12558
|
"kind": "import-statement"
|
12554
12559
|
},
|
12555
12560
|
{
|
@@ -12713,13 +12718,13 @@
|
|
12713
12718
|
},
|
12714
12719
|
"bytes": 36449
|
12715
12720
|
},
|
12716
|
-
"dist/chunk-
|
12721
|
+
"dist/chunk-NHPPOGUF.js.map": {
|
12717
12722
|
"imports": [],
|
12718
12723
|
"exports": [],
|
12719
12724
|
"inputs": {},
|
12720
|
-
"bytes":
|
12725
|
+
"bytes": 3034631
|
12721
12726
|
},
|
12722
|
-
"dist/chunk-
|
12727
|
+
"dist/chunk-NHPPOGUF.js": {
|
12723
12728
|
"imports": [
|
12724
12729
|
{
|
12725
12730
|
"path": "react",
|
@@ -14922,7 +14927,7 @@
|
|
14922
14927
|
"external": true
|
14923
14928
|
},
|
14924
14929
|
{
|
14925
|
-
"path": "dist/HLSView-
|
14930
|
+
"path": "dist/HLSView-4L4OAX2K.js",
|
14926
14931
|
"kind": "dynamic-import"
|
14927
14932
|
},
|
14928
14933
|
{
|
@@ -15333,7 +15338,7 @@
|
|
15333
15338
|
],
|
15334
15339
|
"inputs": {
|
15335
15340
|
"<define:process.env>": {
|
15336
|
-
"bytesInOutput":
|
15341
|
+
"bytesInOutput": 18549
|
15337
15342
|
},
|
15338
15343
|
"../../node_modules/lodash/lodash.js": {
|
15339
15344
|
"bytesInOutput": 224380
|
@@ -15756,7 +15761,7 @@
|
|
15756
15761
|
"bytesInOutput": 10019
|
15757
15762
|
},
|
15758
15763
|
"../hms-video-web/dist/index.js": {
|
15759
|
-
"bytesInOutput":
|
15764
|
+
"bytesInOutput": 32617
|
15760
15765
|
},
|
15761
15766
|
"../../node_modules/webrtc-adapter/src/js/adapter_core.js": {
|
15762
15767
|
"bytesInOutput": 154
|
@@ -15822,7 +15827,7 @@
|
|
15822
15827
|
"bytesInOutput": 712
|
15823
15828
|
},
|
15824
15829
|
"../hms-video-store/dist/index.js": {
|
15825
|
-
"bytesInOutput":
|
15830
|
+
"bytesInOutput": 19851
|
15826
15831
|
},
|
15827
15832
|
"../../node_modules/reselect/es/index.js": {
|
15828
15833
|
"bytesInOutput": 2537
|
@@ -15969,7 +15974,7 @@
|
|
15969
15974
|
"bytesInOutput": 7277
|
15970
15975
|
},
|
15971
15976
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
15972
|
-
"bytesInOutput":
|
15977
|
+
"bytesInOutput": 3442
|
15973
15978
|
},
|
15974
15979
|
"src/Prebuilt/components/Chat/ChatBody.tsx": {
|
15975
15980
|
"bytesInOutput": 13096
|
@@ -16020,7 +16025,7 @@
|
|
16020
16025
|
"bytesInOutput": 543
|
16021
16026
|
},
|
16022
16027
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx": {
|
16023
|
-
"bytesInOutput":
|
16028
|
+
"bytesInOutput": 4205
|
16024
16029
|
},
|
16025
16030
|
"src/Prebuilt/components/ChatSettings.tsx": {
|
16026
16031
|
"bytesInOutput": 2469
|
@@ -16041,7 +16046,7 @@
|
|
16041
16046
|
"bytesInOutput": 1050
|
16042
16047
|
},
|
16043
16048
|
"src/Prebuilt/components/VirtualBackground/VBPicker.tsx": {
|
16044
|
-
"bytesInOutput":
|
16049
|
+
"bytesInOutput": 5520
|
16045
16050
|
},
|
16046
16051
|
"src/Prebuilt/components/VirtualBackground/VBCollection.tsx": {
|
16047
16052
|
"bytesInOutput": 1157
|
@@ -16050,7 +16055,7 @@
|
|
16050
16055
|
"bytesInOutput": 1161
|
16051
16056
|
},
|
16052
16057
|
"src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
|
16053
|
-
"bytesInOutput":
|
16058
|
+
"bytesInOutput": 2848
|
16054
16059
|
},
|
16055
16060
|
"src/Prebuilt/components/VirtualBackground/constants.ts": {
|
16056
16061
|
"bytesInOutput": 714
|
@@ -16158,7 +16163,7 @@
|
|
16158
16163
|
"bytesInOutput": 2185
|
16159
16164
|
},
|
16160
16165
|
"src/Prebuilt/AppStateContext.tsx": {
|
16161
|
-
"bytesInOutput":
|
16166
|
+
"bytesInOutput": 2157
|
16162
16167
|
},
|
16163
16168
|
"src/Prebuilt/components/hooks/useRedirectToLeave.tsx": {
|
16164
16169
|
"bytesInOutput": 491
|
@@ -16236,7 +16241,7 @@
|
|
16236
16241
|
"bytesInOutput": 418
|
16237
16242
|
}
|
16238
16243
|
},
|
16239
|
-
"bytes":
|
16244
|
+
"bytes": 1223430
|
16240
16245
|
}
|
16241
16246
|
}
|
16242
16247
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.1.19
|
13
|
+
"version": "0.1.19",
|
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.28
|
80
|
-
"@100mslive/hms-virtual-background": "1.11.28
|
81
|
-
"@100mslive/react-icons": "0.8.28
|
82
|
-
"@100mslive/react-sdk": "0.8.28
|
79
|
+
"@100mslive/hls-player": "0.1.28",
|
80
|
+
"@100mslive/hms-virtual-background": "1.11.28",
|
81
|
+
"@100mslive/react-icons": "0.8.28",
|
82
|
+
"@100mslive/react-sdk": "0.8.28",
|
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": "2616c7f5408ccbe73ba402514ca7b87b310d377c"
|
119
119
|
}
|
@@ -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) {
|