@100mslive/roomkit-react 0.3.19-alpha.10 → 0.3.19-alpha.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-SQVMLXDB.css → HLSView-D7IQB6BD.css} +3 -3
- package/dist/{HLSView-SQVMLXDB.css.map → HLSView-D7IQB6BD.css.map} +1 -1
- package/dist/{HLSView-YHWO3IWB.js → HLSView-VKXAAFUC.js} +2 -2
- package/dist/{chunk-2OV5LOYE.js → chunk-P2DQPVC3.js} +22 -14
- package/dist/{chunk-2OV5LOYE.js.map → chunk-P2DQPVC3.js.map} +2 -2
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +24 -16
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +12 -12
- package/dist/meta.esbuild.json +24 -24
- package/package.json +7 -7
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +18 -10
- /package/dist/{HLSView-YHWO3IWB.js.map → HLSView-VKXAAFUC.js.map} +0 -0
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.3.19-alpha.
|
13
|
+
"version": "0.3.19-alpha.12",
|
14
14
|
"author": "100ms",
|
15
15
|
"license": "MIT",
|
16
16
|
"repository": {
|
@@ -75,12 +75,12 @@
|
|
75
75
|
"react": ">=17.0.2 <19.0.0"
|
76
76
|
},
|
77
77
|
"dependencies": {
|
78
|
-
"@100mslive/hls-player": "0.3.19-alpha.
|
78
|
+
"@100mslive/hls-player": "0.3.19-alpha.12",
|
79
79
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
80
|
-
"@100mslive/hms-virtual-background": "1.13.19-alpha.
|
81
|
-
"@100mslive/hms-whiteboard": "0.0.9-alpha.
|
82
|
-
"@100mslive/react-icons": "0.10.19-alpha.
|
83
|
-
"@100mslive/react-sdk": "0.10.19-alpha.
|
80
|
+
"@100mslive/hms-virtual-background": "1.13.19-alpha.12",
|
81
|
+
"@100mslive/hms-whiteboard": "0.0.9-alpha.12",
|
82
|
+
"@100mslive/react-icons": "0.10.19-alpha.12",
|
83
|
+
"@100mslive/react-sdk": "0.10.19-alpha.12",
|
84
84
|
"@100mslive/types-prebuilt": "0.12.12",
|
85
85
|
"@emoji-mart/data": "^1.0.6",
|
86
86
|
"@emoji-mart/react": "^1.0.1",
|
@@ -117,5 +117,5 @@
|
|
117
117
|
"uuid": "^8.3.2",
|
118
118
|
"worker-timers": "^7.0.40"
|
119
119
|
},
|
120
|
-
"gitHead": "
|
120
|
+
"gitHead": "f0ac7e7cc1212e2a30cd404deefffd4a7d091c9f"
|
121
121
|
}
|
@@ -64,6 +64,17 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
|
|
64
64
|
const showVideoTile = isVideoOn && isLargeRoom && !inPreview;
|
65
65
|
|
66
66
|
useEffect(() => {
|
67
|
+
const addHMSVBPlugin = async () => {
|
68
|
+
setLoadingEffects(false);
|
69
|
+
if (!role) {
|
70
|
+
return;
|
71
|
+
}
|
72
|
+
await VBHandler.initialisePlugin();
|
73
|
+
await hmsActions.addPluginToVideoTrack(
|
74
|
+
VBHandler.getVBObject() as HMSVBPlugin,
|
75
|
+
Math.floor(role.publishParams.video.frameRate / 2),
|
76
|
+
);
|
77
|
+
};
|
67
78
|
const initializeVirtualBackground = async () => {
|
68
79
|
if (!track?.id || pluginLoadingRef.current || isPluginAdded) {
|
69
80
|
return;
|
@@ -79,17 +90,14 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
|
|
79
90
|
await VBHandler.initialisePlugin(effectsKey, () => {
|
80
91
|
setLoadingEffects(false);
|
81
92
|
});
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
93
|
+
const vbInstance = VBHandler.getVBObject();
|
94
|
+
if (vbInstance.getName() === 'HMSEffects') {
|
95
|
+
hmsActions.addPluginsToVideoStream([VBHandler.getVBObject() as HMSMediaStreamPlugin]);
|
96
|
+
} else {
|
97
|
+
await addHMSVBPlugin();
|
87
98
|
}
|
88
|
-
|
89
|
-
await
|
90
|
-
VBHandler.getVBObject() as HMSVBPlugin,
|
91
|
-
Math.floor(role.publishParams.video.frameRate / 2),
|
92
|
-
);
|
99
|
+
} else {
|
100
|
+
await addHMSVBPlugin();
|
93
101
|
}
|
94
102
|
|
95
103
|
const handleDefaultBackground = async () => {
|
File without changes
|