@100mslive/roomkit-react 0.2.6-alpha.3 → 0.2.6-alpha.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ import {
62
62
  theme,
63
63
  useBorderAudioLevel,
64
64
  useTheme
65
- } from "./chunk-ZJU5GUBY.js";
65
+ } from "./chunk-HRUQKLGN.js";
66
66
  export {
67
67
  Accordion,
68
68
  AudioLevel,
@@ -2205,18 +2205,28 @@
2205
2205
  "format": "esm"
2206
2206
  },
2207
2207
  "src/Prebuilt/components/AppData/AppData.tsx": {
2208
- "bytes": 5537,
2208
+ "bytes": 5829,
2209
2209
  "imports": [
2210
2210
  {
2211
2211
  "path": "react",
2212
2212
  "kind": "import-statement",
2213
2213
  "external": true
2214
2214
  },
2215
+ {
2216
+ "path": "react-use",
2217
+ "kind": "import-statement",
2218
+ "external": true
2219
+ },
2215
2220
  {
2216
2221
  "path": "@100mslive/react-sdk",
2217
2222
  "kind": "import-statement",
2218
2223
  "external": true
2219
2224
  },
2225
+ {
2226
+ "path": "src/Theme/index.tsx",
2227
+ "kind": "import-statement",
2228
+ "original": "../../../Theme"
2229
+ },
2220
2230
  {
2221
2231
  "path": "src/Prebuilt/components/Settings/LayoutSettings.tsx",
2222
2232
  "kind": "import-statement",
@@ -5013,7 +5023,7 @@
5013
5023
  "format": "esm"
5014
5024
  },
5015
5025
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
5016
- "bytes": 11911,
5026
+ "bytes": 11876,
5017
5027
  "imports": [
5018
5028
  {
5019
5029
  "path": "react",
@@ -8771,7 +8781,7 @@
8771
8781
  "format": "esm"
8772
8782
  },
8773
8783
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
8774
- "bytes": 2675,
8784
+ "bytes": 2687,
8775
8785
  "imports": [
8776
8786
  {
8777
8787
  "path": "@100mslive/hms-virtual-background",
@@ -9149,7 +9159,7 @@
9149
9159
  "format": "esm"
9150
9160
  },
9151
9161
  "src/Prebuilt/components/Preview/PreviewJoin.tsx": {
9152
- "bytes": 9972,
9162
+ "bytes": 9985,
9153
9163
  "imports": [
9154
9164
  {
9155
9165
  "path": "react",
@@ -9934,7 +9944,7 @@
9934
9944
  "format": "esm"
9935
9945
  },
9936
9946
  "src/Prebuilt/components/ScreenshareTile.tsx": {
9937
- "bytes": 4462,
9947
+ "bytes": 4479,
9938
9948
  "imports": [
9939
9949
  {
9940
9950
  "path": "react",
@@ -10731,7 +10741,7 @@
10731
10741
  "format": "esm"
10732
10742
  },
10733
10743
  "src/Prebuilt/layouts/HLSView.jsx": {
10734
- "bytes": 18225,
10744
+ "bytes": 18115,
10735
10745
  "imports": [
10736
10746
  {
10737
10747
  "path": "react",
@@ -12780,7 +12790,7 @@
12780
12790
  "imports": [],
12781
12791
  "exports": [],
12782
12792
  "inputs": {},
12783
- "bytes": 3167517
12793
+ "bytes": 3167561
12784
12794
  },
12785
12795
  "dist/index.cjs.js": {
12786
12796
  "imports": [
@@ -13129,6 +13139,11 @@
13129
13139
  "kind": "require-call",
13130
13140
  "external": true
13131
13141
  },
13142
+ {
13143
+ "path": "react-use",
13144
+ "kind": "require-call",
13145
+ "external": true
13146
+ },
13132
13147
  {
13133
13148
  "path": "@100mslive/react-sdk",
13134
13149
  "kind": "require-call",
@@ -15484,7 +15499,7 @@
15484
15499
  "entryPoint": "src/index.ts",
15485
15500
  "inputs": {
15486
15501
  "<define:process.env>": {
15487
- "bytesInOutput": 18180
15502
+ "bytesInOutput": 18159
15488
15503
  },
15489
15504
  "src/Theme/base.config.ts": {
15490
15505
  "bytesInOutput": 6104
@@ -15778,7 +15793,7 @@
15778
15793
  "bytesInOutput": 2515
15779
15794
  },
15780
15795
  "src/Prebuilt/components/AppData/AppData.tsx": {
15781
- "bytesInOutput": 6173
15796
+ "bytesInOutput": 6500
15782
15797
  },
15783
15798
  "src/Prebuilt/AppContext.tsx": {
15784
15799
  "bytesInOutput": 840
@@ -15994,7 +16009,7 @@
15994
16009
  "bytesInOutput": 938
15995
16010
  },
15996
16011
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
15997
- "bytesInOutput": 12942
16012
+ "bytesInOutput": 12309
15998
16013
  },
15999
16014
  "src/Prebuilt/components/MoreSettings/MoreSettings.tsx": {
16000
16015
  "bytesInOutput": 729
@@ -16228,7 +16243,7 @@
16228
16243
  "bytesInOutput": 1628
16229
16244
  },
16230
16245
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
16231
- "bytesInOutput": 4186
16246
+ "bytesInOutput": 4226
16232
16247
  },
16233
16248
  "src/Prebuilt/components/VirtualBackground/constants.ts": {
16234
16249
  "bytesInOutput": 908
@@ -16252,7 +16267,7 @@
16252
16267
  "bytesInOutput": 3422
16253
16268
  },
16254
16269
  "src/Prebuilt/components/Preview/PreviewJoin.tsx": {
16255
- "bytesInOutput": 11789
16270
+ "bytesInOutput": 11802
16256
16271
  },
16257
16272
  "src/Prebuilt/components/RoleChangeRequest/RequestPrompt.tsx": {
16258
16273
  "bytesInOutput": 2764
@@ -16297,7 +16312,7 @@
16297
16312
  "bytesInOutput": 1707
16298
16313
  },
16299
16314
  "src/Prebuilt/components/ScreenshareTile.tsx": {
16300
- "bytesInOutput": 5566
16315
+ "bytesInOutput": 5583
16301
16316
  },
16302
16317
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
16303
16318
  "bytesInOutput": 3419
@@ -16363,7 +16378,7 @@
16363
16378
  "bytesInOutput": 4598
16364
16379
  },
16365
16380
  "src/Prebuilt/layouts/HLSView.jsx": {
16366
- "bytesInOutput": 21767
16381
+ "bytesInOutput": 21671
16367
16382
  },
16368
16383
  "src/Prebuilt/layouts/VideoStreamingSection.tsx": {
16369
16384
  "bytesInOutput": 4111
@@ -16492,7 +16507,7 @@
16492
16507
  "bytesInOutput": 2980
16493
16508
  }
16494
16509
  },
16495
- "bytes": 1489012
16510
+ "bytes": 1488659
16496
16511
  }
16497
16512
  }
16498
16513
  }
@@ -2205,18 +2205,28 @@
2205
2205
  "format": "esm"
2206
2206
  },
2207
2207
  "src/Prebuilt/components/AppData/AppData.tsx": {
2208
- "bytes": 5537,
2208
+ "bytes": 5829,
2209
2209
  "imports": [
2210
2210
  {
2211
2211
  "path": "react",
2212
2212
  "kind": "import-statement",
2213
2213
  "external": true
2214
2214
  },
2215
+ {
2216
+ "path": "react-use",
2217
+ "kind": "import-statement",
2218
+ "external": true
2219
+ },
2215
2220
  {
2216
2221
  "path": "@100mslive/react-sdk",
2217
2222
  "kind": "import-statement",
2218
2223
  "external": true
2219
2224
  },
2225
+ {
2226
+ "path": "src/Theme/index.tsx",
2227
+ "kind": "import-statement",
2228
+ "original": "../../../Theme"
2229
+ },
2220
2230
  {
2221
2231
  "path": "src/Prebuilt/components/Settings/LayoutSettings.tsx",
2222
2232
  "kind": "import-statement",
@@ -5013,7 +5023,7 @@
5013
5023
  "format": "esm"
5014
5024
  },
5015
5025
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
5016
- "bytes": 11911,
5026
+ "bytes": 11876,
5017
5027
  "imports": [
5018
5028
  {
5019
5029
  "path": "react",
@@ -8771,7 +8781,7 @@
8771
8781
  "format": "esm"
8772
8782
  },
8773
8783
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
8774
- "bytes": 2675,
8784
+ "bytes": 2687,
8775
8785
  "imports": [
8776
8786
  {
8777
8787
  "path": "@100mslive/hms-virtual-background",
@@ -9149,7 +9159,7 @@
9149
9159
  "format": "esm"
9150
9160
  },
9151
9161
  "src/Prebuilt/components/Preview/PreviewJoin.tsx": {
9152
- "bytes": 9972,
9162
+ "bytes": 9985,
9153
9163
  "imports": [
9154
9164
  {
9155
9165
  "path": "react",
@@ -9934,7 +9944,7 @@
9934
9944
  "format": "esm"
9935
9945
  },
9936
9946
  "src/Prebuilt/components/ScreenshareTile.tsx": {
9937
- "bytes": 4462,
9947
+ "bytes": 4479,
9938
9948
  "imports": [
9939
9949
  {
9940
9950
  "path": "react",
@@ -10731,7 +10741,7 @@
10731
10741
  "format": "esm"
10732
10742
  },
10733
10743
  "src/Prebuilt/layouts/HLSView.jsx": {
10734
- "bytes": 18225,
10744
+ "bytes": 18115,
10735
10745
  "imports": [
10736
10746
  {
10737
10747
  "path": "react",
@@ -12785,7 +12795,7 @@
12785
12795
  "dist/index.js": {
12786
12796
  "imports": [
12787
12797
  {
12788
- "path": "dist/chunk-ZJU5GUBY.js",
12798
+ "path": "dist/chunk-HRUQKLGN.js",
12789
12799
  "kind": "import-statement"
12790
12800
  }
12791
12801
  ],
@@ -12858,16 +12868,16 @@
12858
12868
  "inputs": {},
12859
12869
  "bytes": 1822
12860
12870
  },
12861
- "dist/HLSView-7QXLQ4KD.js.map": {
12871
+ "dist/HLSView-H6Q2FEMZ.js.map": {
12862
12872
  "imports": [],
12863
12873
  "exports": [],
12864
12874
  "inputs": {},
12865
- "bytes": 59786
12875
+ "bytes": 59619
12866
12876
  },
12867
- "dist/HLSView-7QXLQ4KD.js": {
12877
+ "dist/HLSView-H6Q2FEMZ.js": {
12868
12878
  "imports": [
12869
12879
  {
12870
- "path": "dist/chunk-ZJU5GUBY.js",
12880
+ "path": "dist/chunk-HRUQKLGN.js",
12871
12881
  "kind": "import-statement"
12872
12882
  },
12873
12883
  {
@@ -12987,7 +12997,7 @@
12987
12997
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
12988
12998
  "inputs": {
12989
12999
  "src/Prebuilt/layouts/HLSView.jsx": {
12990
- "bytesInOutput": 17821
13000
+ "bytesInOutput": 17725
12991
13001
  },
12992
13002
  "src/Prebuilt/components/HlsStatsOverlay.jsx": {
12993
13003
  "bytesInOutput": 3521
@@ -13029,15 +13039,15 @@
13029
13039
  "bytesInOutput": 3992
13030
13040
  }
13031
13041
  },
13032
- "bytes": 37440
13042
+ "bytes": 37344
13033
13043
  },
13034
- "dist/chunk-ZJU5GUBY.js.map": {
13044
+ "dist/chunk-HRUQKLGN.js.map": {
13035
13045
  "imports": [],
13036
13046
  "exports": [],
13037
13047
  "inputs": {},
13038
- "bytes": 3103545
13048
+ "bytes": 3103727
13039
13049
  },
13040
- "dist/chunk-ZJU5GUBY.js": {
13050
+ "dist/chunk-HRUQKLGN.js": {
13041
13051
  "imports": [
13042
13052
  {
13043
13053
  "path": "react",
@@ -13329,6 +13339,11 @@
13329
13339
  "kind": "import-statement",
13330
13340
  "external": true
13331
13341
  },
13342
+ {
13343
+ "path": "react-use",
13344
+ "kind": "import-statement",
13345
+ "external": true
13346
+ },
13332
13347
  {
13333
13348
  "path": "@100mslive/react-sdk",
13334
13349
  "kind": "import-statement",
@@ -15285,7 +15300,7 @@
15285
15300
  "external": true
15286
15301
  },
15287
15302
  {
15288
- "path": "dist/HLSView-7QXLQ4KD.js",
15303
+ "path": "dist/HLSView-H6Q2FEMZ.js",
15289
15304
  "kind": "dynamic-import"
15290
15305
  },
15291
15306
  {
@@ -15707,7 +15722,7 @@
15707
15722
  ],
15708
15723
  "inputs": {
15709
15724
  "<define:process.env>": {
15710
- "bytesInOutput": 18180
15725
+ "bytesInOutput": 18159
15711
15726
  },
15712
15727
  "../../node_modules/lodash/lodash.js": {
15713
15728
  "bytesInOutput": 224267
@@ -15962,7 +15977,7 @@
15962
15977
  "bytesInOutput": 7656
15963
15978
  },
15964
15979
  "src/Prebuilt/components/AppData/AppData.tsx": {
15965
- "bytesInOutput": 5077
15980
+ "bytesInOutput": 5312
15966
15981
  },
15967
15982
  "src/Prebuilt/components/Settings/LayoutSettings.tsx": {
15968
15983
  "bytesInOutput": 2705
@@ -16007,10 +16022,10 @@
16007
16022
  "bytesInOutput": 6071
16008
16023
  },
16009
16024
  "src/Prebuilt/components/Footer/Footer.tsx": {
16010
- "bytesInOutput": 3348
16025
+ "bytesInOutput": 3350
16011
16026
  },
16012
16027
  "src/Prebuilt/components/AudioVideoToggle.jsx": {
16013
- "bytesInOutput": 5480
16028
+ "bytesInOutput": 5497
16014
16029
  },
16015
16030
  "src/Prebuilt/components/IconButtonWithOptions/IconButtonWithOptions.jsx": {
16016
16031
  "bytesInOutput": 2866
@@ -16022,7 +16037,7 @@
16022
16037
  "bytesInOutput": 1028
16023
16038
  },
16024
16039
  "src/Prebuilt/components/EmojiReaction.jsx": {
16025
- "bytesInOutput": 2075
16040
+ "bytesInOutput": 2089
16026
16041
  },
16027
16042
  "src/Prebuilt/components/Footer/EmojiCard.jsx": {
16028
16043
  "bytesInOutput": 972
@@ -16130,7 +16145,7 @@
16130
16145
  "bytesInOutput": 1948
16131
16146
  },
16132
16147
  "src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
16133
- "bytesInOutput": 10584
16148
+ "bytesInOutput": 10037
16134
16149
  },
16135
16150
  "src/Prebuilt/components/Header/StreamActions.tsx": {
16136
16151
  "bytesInOutput": 10019
@@ -16232,7 +16247,7 @@
16232
16247
  "bytesInOutput": 823
16233
16248
  },
16234
16249
  "src/Prebuilt/components/VirtualBackground/VBToggle.tsx": {
16235
- "bytesInOutput": 985
16250
+ "bytesInOutput": 958
16236
16251
  },
16237
16252
  "src/Prebuilt/components/Footer/ChatToggle.tsx": {
16238
16253
  "bytesInOutput": 1404
@@ -16268,7 +16283,7 @@
16268
16283
  "bytesInOutput": 3077
16269
16284
  },
16270
16285
  "src/Prebuilt/components/Preview/PreviewJoin.tsx": {
16271
- "bytesInOutput": 9619
16286
+ "bytesInOutput": 9632
16272
16287
  },
16273
16288
  "src/Prebuilt/layouts/SidePane.tsx": {
16274
16289
  "bytesInOutput": 4579
@@ -16436,7 +16451,7 @@
16436
16451
  "bytesInOutput": 1161
16437
16452
  },
16438
16453
  "src/Prebuilt/components/VirtualBackground/VBHandler.tsx": {
16439
- "bytesInOutput": 3387
16454
+ "bytesInOutput": 3427
16440
16455
  },
16441
16456
  "src/Prebuilt/components/VirtualBackground/constants.ts": {
16442
16457
  "bytesInOutput": 714
@@ -16496,7 +16511,7 @@
16496
16511
  "bytesInOutput": 2664
16497
16512
  },
16498
16513
  "src/Prebuilt/components/ScreenshareTile.tsx": {
16499
- "bytesInOutput": 4430
16514
+ "bytesInOutput": 4447
16500
16515
  },
16501
16516
  "src/Prebuilt/components/LayoutModeSelector.tsx": {
16502
16517
  "bytesInOutput": 3093
@@ -16634,7 +16649,7 @@
16634
16649
  "bytesInOutput": 651
16635
16650
  }
16636
16651
  },
16637
- "bytes": 1266496
16652
+ "bytes": 1266239
16638
16653
  }
16639
16654
  }
16640
16655
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.2.6-alpha.3",
13
+ "version": "0.2.6-alpha.4",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -82,10 +82,10 @@
82
82
  "react": ">=17.0.2 <19.0.0"
83
83
  },
84
84
  "dependencies": {
85
- "@100mslive/hls-player": "0.2.6-alpha.3",
86
- "@100mslive/hms-virtual-background": "1.12.6-alpha.3",
87
- "@100mslive/react-icons": "0.9.6-alpha.3",
88
- "@100mslive/react-sdk": "0.9.6-alpha.3",
85
+ "@100mslive/hls-player": "0.2.6-alpha.4",
86
+ "@100mslive/hms-virtual-background": "1.12.6-alpha.4",
87
+ "@100mslive/react-icons": "0.9.6-alpha.4",
88
+ "@100mslive/react-sdk": "0.9.6-alpha.4",
89
89
  "@100mslive/types-prebuilt": "0.12.6",
90
90
  "@emoji-mart/data": "^1.0.6",
91
91
  "@emoji-mart/react": "^1.0.1",
@@ -120,5 +120,5 @@
120
120
  "uuid": "^8.3.2",
121
121
  "worker-timers": "^7.0.40"
122
122
  },
123
- "gitHead": "e1e1ecc82a980ca298ecb36c81c35ab7500b06b4"
123
+ "gitHead": "9e13e59f926c73e5f32c7537a8ab4e292b8d2806"
124
124
  }
@@ -1,14 +1,17 @@
1
1
  import React, { useEffect } from 'react';
2
+ import { useMedia } from 'react-use';
2
3
  import {
3
4
  HMSRoomState,
4
5
  selectFullAppData,
5
6
  selectHLSState,
6
7
  selectRoomState,
7
8
  selectRTMPState,
9
+ useAVToggle,
8
10
  useHMSActions,
9
11
  useHMSStore,
10
12
  useRecordingStreaming,
11
13
  } from '@100mslive/react-sdk';
14
+ import { config as cssConfig } from '../../../Theme';
12
15
  import { LayoutMode } from '../Settings/LayoutSettings';
13
16
  import { useRoomLayoutConferencingScreen } from '../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
14
17
  //@ts-ignore
@@ -73,6 +76,8 @@ export const AppData = React.memo(() => {
73
76
  const appData = useHMSStore(selectFullAppData);
74
77
  const { elements } = useRoomLayoutConferencingScreen();
75
78
  const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
79
+ const isMobile = useMedia(cssConfig.media.md);
80
+ const { isLocalVideoEnabled } = useAVToggle();
76
81
 
77
82
  useEffect(() => {
78
83
  hmsActions.initAppData({
@@ -114,9 +119,11 @@ export const AppData = React.memo(() => {
114
119
  });
115
120
  if (defaultMediaURL) {
116
121
  hmsActions.setAppData(APP_DATA.background, defaultMediaURL);
117
- toggleVB();
122
+ if (isLocalVideoEnabled && !isMobile) {
123
+ toggleVB();
124
+ }
118
125
  }
119
- }, [hmsActions, elements?.virtual_background?.background_media, toggleVB]);
126
+ }, [hmsActions, elements?.virtual_background?.background_media, toggleVB, isLocalVideoEnabled, isMobile]);
120
127
 
121
128
  return <ResetStreamingStart />;
122
129
  });
@@ -12,7 +12,7 @@ export const SpeakerTag = () => {
12
12
  <Flex
13
13
  align="center"
14
14
  justify="center"
15
- css={{ flex: '1 1 0', color: '$on_primary_high', '@md': { display: 'none' } }}
15
+ css={{ flex: '1 1 0', color: '$on_surface_high', '@md': { display: 'none' } }}
16
16
  >
17
17
  <VerticalDivider css={{ ml: '$8' }} />
18
18
  <VolumeOneIcon />
@@ -22,7 +22,6 @@ import {
22
22
  QuizIcon,
23
23
  RecordIcon,
24
24
  SettingsIcon,
25
- VirtualBackgroundIcon,
26
25
  } from '@100mslive/react-icons';
27
26
  import { Box, Loading, Tooltip } from '../../../..';
28
27
  import { Sheet } from '../../../../Sheet';
@@ -91,10 +90,10 @@ export const MwebOptions = ({
91
90
  const peerCount = useHMSStore(selectPeerCount);
92
91
  const emojiCardRef = useRef(null);
93
92
  const { isBRBOn, toggleBRB, isHandRaised, toggleHandRaise } = useMyMetadata();
94
- const { toggleAudio, toggleVideo, isLocalVideoEnabled } = useAVToggle();
93
+ const { toggleAudio, toggleVideo } = useAVToggle();
95
94
  const noAVPermissions = !(toggleAudio || toggleVideo);
96
95
  const { unreadPollQuiz, setUnreadPollQuiz } = useUnreadPollQuizPresent();
97
- const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
96
+ // const toggleVB = useSidepaneToggle(SIDE_PANE_OPTIONS.VB);
98
97
 
99
98
  useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: 'MoreSettings' });
100
99
 
@@ -181,7 +180,7 @@ export const MwebOptions = ({
181
180
  </ActionTile.Root>
182
181
  ) : null}
183
182
 
184
- {isLocalVideoEnabled && !!elements?.virtual_background ? (
183
+ {/* {isLocalVideoEnabled && !!elements?.virtual_background ? (
185
184
  <ActionTile.Root
186
185
  onClick={() => {
187
186
  toggleVB();
@@ -191,7 +190,7 @@ export const MwebOptions = ({
191
190
  <VirtualBackgroundIcon />
192
191
  <ActionTile.Title>Virtual Background</ActionTile.Title>
193
192
  </ActionTile.Root>
194
- ) : null}
193
+ ) : null} */}
195
194
 
196
195
  {elements?.emoji_reactions && (
197
196
  <ActionTile.Root
@@ -267,7 +267,7 @@ export const PreviewControls = ({ hideSettings, vbEnabled }: { hideSettings: boo
267
267
  >
268
268
  <Flex css={{ gap: '$4' }}>
269
269
  <AudioVideoToggle />
270
- {vbEnabled ? <VBToggle /> : null}
270
+ {vbEnabled && !isMobile ? <VBToggle /> : null}
271
271
  </Flex>
272
272
  {!hideSettings ? <PreviewSettings /> : null}
273
273
  </Flex>
@@ -95,7 +95,7 @@ const Tile = ({ peerId, width = '100%', height = '100%' }: { peerId: string; wid
95
95
  {isFullscreen ? <ShrinkIcon /> : <ExpandIcon />}
96
96
  </StyledVideoTile.FullScreenButton>
97
97
  ) : null}
98
- {!isMobile && isMouseHovered && (
98
+ {!isMobile && isMouseHovered && !isFullscreen && (
99
99
  <Box
100
100
  css={{
101
101
  position: 'absolute',
@@ -70,9 +70,9 @@ export class VBPlugin {
70
70
  }
71
71
  };
72
72
 
73
- setPreset = (preset: string) => {
73
+ setPreset = async (preset: string) => {
74
74
  if (this.effectsPlugin) {
75
- this.effectsPlugin.setPreset(preset);
75
+ await this.effectsPlugin.setPreset(preset);
76
76
  }
77
77
  };
78
78
 
@@ -308,8 +308,7 @@ const HLSView = () => {
308
308
  align="center"
309
309
  justify="center"
310
310
  css={{
311
- width:
312
- videoRef.current && videoRef.current.clientWidth <= 720 ? `${videoRef.current.clientWidth}px` : '100%',
311
+ width: '100%',
313
312
  margin: '0 auto',
314
313
  height: '100%',
315
314
  }}