@100mslive/roomkit-react 0.3.19-alpha.12 → 0.3.19-alpha.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,8 +13,8 @@ export class VBPlugin {
13
13
  if (effectsSDKKey) {
14
14
  try {
15
15
  // eslint-disable-next-line
16
- const { HMSEffectsPlugin } = await import('@100mslive/hms-virtual-background/hmseffectsplugin');
17
- this.effectsPlugin = new HMSEffectsPlugin(effectsSDKKey, onInit);
16
+ const effects = await import('@100mslive/hms-virtual-background/hmseffectsplugin');
17
+ this.effectsPlugin = new effects.HMSEffectsPlugin(effectsSDKKey, onInit);
18
18
  } catch (error) {
19
19
  console.error('Failed to initialise HMSEffectsPlugin:', error, 'Using HMSVBPlugin');
20
20
  this.hmsPlugin = new HMSVBPlugin(HMSVirtualBackgroundTypes.NONE, HMSVirtualBackgroundTypes.NONE);