@100mslive/roomkit-react 0.3.22-alpha.3 → 0.3.22-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Accordion/Accordion.d.ts +322 -134
- package/dist/Accordion/index.d.ts +322 -134
- package/dist/Avatar/Avatar.d.ts +141 -47
- package/dist/Button/Button.d.ts +141 -47
- package/dist/Checkbox/Checkbox.d.ts +322 -134
- package/dist/Collapsible/Collapsible.d.ts +483 -201
- package/dist/Divider/Divider.d.ts +322 -134
- package/dist/Dropdown/Dropdown.d.ts +1932 -804
- package/dist/Fieldset/Fieldset.d.ts +141 -47
- package/dist/Footer/Footer.d.ts +1288 -536
- package/dist/{HLSView-EYGGK6BH.js → HLSView-CSOBLYBP.js} +24 -38
- package/dist/HLSView-CSOBLYBP.js.map +7 -0
- package/dist/{PDFView-RMR33QH4.css → HLSView-QZMIDGI4.css} +3 -3
- package/dist/{LeaveScreen-ZAG5UJZL.css.map → HLSView-QZMIDGI4.css.map} +1 -1
- package/dist/IconButton/IconButton.d.ts +141 -47
- package/dist/Input/Input.d.ts +926 -362
- package/dist/Label/Label.d.ts +141 -47
- package/dist/Layout/Box.d.ts +141 -47
- package/dist/Layout/Flex.d.ts +141 -47
- package/dist/Link/Link.d.ts +141 -47
- package/dist/Modal/Dialog.d.ts +987 -329
- package/dist/Modal/DialogContent.d.ts +1127 -469
- package/dist/Pagination/StyledPagination.d.ts +644 -268
- package/dist/Popover/index.d.ts +483 -201
- package/dist/Prebuilt/IconButton.d.ts +322 -134
- package/dist/Prebuilt/components/Chat/ChatBody.d.ts +322 -134
- package/dist/Prebuilt/components/Leave/LeaveAtoms.d.ts +805 -335
- package/dist/Prebuilt/components/Settings/common.d.ts +322 -134
- package/dist/Progress/index.d.ts +322 -134
- package/dist/RadioGroup/RadioGroup.d.ts +483 -201
- package/dist/ReactSelect/ReactSelect.d.ts +1610 -670
- package/dist/Select/Select.d.ts +483 -201
- package/dist/Sheet/Sheet.d.ts +987 -329
- package/dist/Slider/Slider.d.ts +141 -47
- package/dist/Stats/StyledStats.d.ts +966 -402
- package/dist/Switch/Switch.d.ts +141 -47
- package/dist/Tabs/Tabs.d.ts +644 -268
- package/dist/Text/Text.d.ts +141 -47
- package/dist/TextArea/TextArea.d.ts +141 -47
- package/dist/Theme/base.config.d.ts +78 -26
- package/dist/Theme/stitches.config.d.ts +1514 -1067
- package/dist/TileMenu/StyledMenuTile.d.ts +1127 -469
- package/dist/Toast/Toast.d.ts +946 -382
- package/dist/Video/Video.d.ts +141 -47
- package/dist/VideoList/StyledVideoList.d.ts +483 -201
- package/dist/VideoTile/StyledVideoTile.d.ts +1610 -670
- package/dist/chunk-4VBHLZDR.js +34747 -0
- package/dist/chunk-4VBHLZDR.js.map +7 -0
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +22358 -22561
- package/dist/index.cjs.js.map +4 -4
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +15 -25
- package/dist/meta.cjs.json +5299 -5657
- package/dist/meta.esbuild.json +6290 -9146
- package/package.json +8 -8
- package/src/Avatar/Avatar.tsx +1 -1
- package/src/Popover/Popover.stories.tsx +1 -1
- package/src/Prebuilt/App.tsx +2 -6
- package/src/Prebuilt/components/Chat/Chat.tsx +8 -12
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
- package/src/Prebuilt/components/Notifications/Notifications.tsx +159 -13
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +2 -9
- package/src/Prebuilt/components/Notifications/ReconnectNotifications.tsx +5 -1
- package/src/Prebuilt/components/Notifications/TrackBulkUnmuteModal.tsx +5 -7
- package/src/Prebuilt/components/Notifications/TrackNotifications.tsx +1 -23
- package/src/Prebuilt/components/Notifications/TrackUnmuteModal.tsx +5 -13
- package/src/Prebuilt/components/StatsForNerds.jsx +3 -32
- package/src/Prebuilt/components/VideoLayouts/GridLayout.tsx +31 -43
- package/src/Prebuilt/components/VideoLayouts/ProminenceLayout.tsx +2 -2
- package/src/Prebuilt/components/VirtualBackground/VBOption.tsx +1 -3
- package/src/Prebuilt/components/VirtualBackground/VBPicker.tsx +0 -6
- package/src/Prebuilt/layouts/HLSView.jsx +0 -1
- package/src/Prebuilt/layouts/PDFView.jsx +0 -1
- package/src/Prebuilt/layouts/SidePane.tsx +6 -12
- package/src/Prebuilt/layouts/VideoStreamingSection.tsx +34 -35
- package/dist/ConferenceScreen-CSVWECB5.js +0 -1778
- package/dist/ConferenceScreen-CSVWECB5.js.map +0 -7
- package/dist/ConferenceScreen-YRURU3RV.css +0 -2780
- package/dist/ConferenceScreen-YRURU3RV.css.map +0 -7
- package/dist/EmbedView-N2E4DZQA.js +0 -17
- package/dist/EmbedView-N2E4DZQA.js.map +0 -7
- package/dist/EmbedView-S54NTHF5.css +0 -2780
- package/dist/EmbedView-S54NTHF5.css.map +0 -7
- package/dist/EmojiReaction-3X4ST4AU.js +0 -11
- package/dist/EmojiReaction-3X4ST4AU.js.map +0 -7
- package/dist/HLSView-EYGGK6BH.js.map +0 -7
- package/dist/HLSView-LBTFLMI4.css +0 -2780
- package/dist/HLSView-LBTFLMI4.css.map +0 -7
- package/dist/LeaveScreen-D6XU64JL.js +0 -556
- package/dist/LeaveScreen-D6XU64JL.js.map +0 -7
- package/dist/LeaveScreen-ZAG5UJZL.css +0 -2780
- package/dist/MoreSettings-R7B4BSNT.css +0 -2780
- package/dist/MoreSettings-R7B4BSNT.css.map +0 -7
- package/dist/MoreSettings-TBJVM7OY.js +0 -16
- package/dist/MoreSettings-TBJVM7OY.js.map +0 -7
- package/dist/PDFView-JOIJDP65.js +0 -84
- package/dist/PDFView-JOIJDP65.js.map +0 -7
- package/dist/PDFView-RMR33QH4.css.map +0 -7
- package/dist/Polls-IN3V2HFI.js +0 -1584
- package/dist/Polls-IN3V2HFI.js.map +0 -7
- package/dist/Polls-JW7JWGTE.css +0 -2780
- package/dist/Polls-JW7JWGTE.css.map +0 -7
- package/dist/Prebuilt/components/Notifications/DeviceChangeNotifications.d.ts +0 -1
- package/dist/Prebuilt/components/Notifications/ErrorNotifications.d.ts +0 -1
- package/dist/Prebuilt/components/Notifications/MessageNotifications.d.ts +0 -1
- package/dist/Prebuilt/components/Notifications/PollNotificationModal.d.ts +0 -1
- package/dist/Prebuilt/components/Notifications/RoleChangeNotification.d.ts +0 -1
- package/dist/RaiseHand-WES4KKMD.js +0 -10
- package/dist/RaiseHand-WES4KKMD.js.map +0 -7
- package/dist/RoleProminence-4ZBDBCMU.css +0 -2780
- package/dist/RoleProminence-4ZBDBCMU.css.map +0 -7
- package/dist/RoleProminence-PB32DLIB.js +0 -116
- package/dist/RoleProminence-PB32DLIB.js.map +0 -7
- package/dist/RoomDetailsPane-CZH2SNLE.js +0 -53
- package/dist/RoomDetailsPane-CZH2SNLE.js.map +0 -7
- package/dist/RoomDetailsPane-XWH2KEFI.css +0 -2780
- package/dist/RoomDetailsPane-XWH2KEFI.css.map +0 -7
- package/dist/ScreenshareLayout-XVENPVK3.js +0 -358
- package/dist/ScreenshareLayout-XVENPVK3.js.map +0 -7
- package/dist/ScreenshareLayout-YUW3KHAB.css +0 -2780
- package/dist/ScreenshareLayout-YUW3KHAB.css.map +0 -7
- package/dist/SidePaneTabs-QXCDHOGG.js +0 -1354
- package/dist/SidePaneTabs-QXCDHOGG.js.map +0 -7
- package/dist/SidePaneTabs-WQGVOWRP.css +0 -2780
- package/dist/SidePaneTabs-WQGVOWRP.css.map +0 -7
- package/dist/VBPicker-XN74N67R.js +0 -322
- package/dist/VBPicker-XN74N67R.js.map +0 -7
- package/dist/VBPicker-YDM2YIOM.css +0 -2780
- package/dist/VBPicker-YDM2YIOM.css.map +0 -7
- package/dist/WaitingView-77PRTIBV.js +0 -10
- package/dist/WaitingView-77PRTIBV.js.map +0 -7
- package/dist/WhiteboardLayout-FZC7SOSG.js +0 -96
- package/dist/WhiteboardLayout-FZC7SOSG.js.map +0 -7
- package/dist/WhiteboardLayout-MNTUWEVK.css +0 -2780
- package/dist/WhiteboardLayout-MNTUWEVK.css.map +0 -7
- package/dist/android-perm-1.png +0 -0
- package/dist/audio-level.png +0 -0
- package/dist/chunk-26D5FDBW.js +0 -16812
- package/dist/chunk-26D5FDBW.js.map +0 -7
- package/dist/chunk-2J5WS52X.js +0 -2595
- package/dist/chunk-2J5WS52X.js.map +0 -7
- package/dist/chunk-2LWOQMYY.js +0 -30
- package/dist/chunk-2LWOQMYY.js.map +0 -7
- package/dist/chunk-3MRQJSIY.js +0 -171
- package/dist/chunk-3MRQJSIY.js.map +0 -7
- package/dist/chunk-4X4WB7X3.js +0 -98
- package/dist/chunk-4X4WB7X3.js.map +0 -7
- package/dist/chunk-7QZJMUHM.js +0 -90
- package/dist/chunk-7QZJMUHM.js.map +0 -7
- package/dist/chunk-ABCV7TX5.js +0 -71
- package/dist/chunk-ABCV7TX5.js.map +0 -7
- package/dist/chunk-BQOT4DK7.js +0 -418
- package/dist/chunk-BQOT4DK7.js.map +0 -7
- package/dist/chunk-ENHSO6YN.js +0 -6337
- package/dist/chunk-ENHSO6YN.js.map +0 -7
- package/dist/chunk-JKWX7W4K.js +0 -161
- package/dist/chunk-JKWX7W4K.js.map +0 -7
- package/dist/chunk-LO4BXA4G.js +0 -114
- package/dist/chunk-LO4BXA4G.js.map +0 -7
- package/dist/chunk-MRVWNFXC.js +0 -59
- package/dist/chunk-MRVWNFXC.js.map +0 -7
- package/dist/chunk-OA4HW7HW.js +0 -262
- package/dist/chunk-OA4HW7HW.js.map +0 -7
- package/dist/chunk-PJQSPAFZ.js +0 -178
- package/dist/chunk-PJQSPAFZ.js.map +0 -7
- package/dist/chunk-QHQKY35W.js +0 -830
- package/dist/chunk-QHQKY35W.js.map +0 -7
- package/dist/chunk-QKXHQ6DV.js +0 -254
- package/dist/chunk-QKXHQ6DV.js.map +0 -7
- package/dist/chunk-RTWNTT77.js +0 -62
- package/dist/chunk-RTWNTT77.js.map +0 -7
- package/dist/chunk-TBXRX6MK.js +0 -576
- package/dist/chunk-TBXRX6MK.js.map +0 -7
- package/dist/chunk-TCOPR3BK.js +0 -487
- package/dist/chunk-TCOPR3BK.js.map +0 -7
- package/dist/chunk-VKORP2LF.js +0 -41
- package/dist/chunk-VKORP2LF.js.map +0 -7
- package/dist/chunk-YYVDCP5Z.js +0 -136
- package/dist/chunk-YYVDCP5Z.js.map +0 -7
- package/dist/empty-chat.svg +0 -12
- package/dist/ios-perm-0.png +0 -0
- package/dist/pdf-share.png +0 -0
- package/dist/screen-share.png +0 -0
- package/dist/transaction_error.svg +0 -12
- package/src/Prebuilt/components/Notifications/DeviceChangeNotifications.tsx +0 -18
- package/src/Prebuilt/components/Notifications/ErrorNotifications.tsx +0 -56
- package/src/Prebuilt/components/Notifications/MessageNotifications.tsx +0 -24
- package/src/Prebuilt/components/Notifications/PollNotificationModal.tsx +0 -71
- package/src/Prebuilt/components/Notifications/RoleChangeNotification.tsx +0 -24
@@ -1,4 +1,4 @@
|
|
1
|
-
import React, {
|
1
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
2
2
|
import { GridVideoTileLayout } from '@100mslive/types-prebuilt/elements/video_tile_layout';
|
3
3
|
import {
|
4
4
|
selectLocalPeerID,
|
@@ -9,22 +9,16 @@ import {
|
|
9
9
|
useHMSStore,
|
10
10
|
useHMSVanillaStore,
|
11
11
|
} from '@100mslive/react-sdk';
|
12
|
-
|
12
|
+
// @ts-ignore: No implicit Any
|
13
13
|
import { EqualProminence } from './EqualProminence';
|
14
|
+
import { RoleProminence } from './RoleProminence';
|
15
|
+
import { ScreenshareLayout } from './ScreenshareLayout';
|
16
|
+
import { WhiteboardLayout } from './WhiteboardLayout';
|
14
17
|
// @ts-ignore: No implicit Any
|
15
18
|
import { usePinnedTrack, useSetAppDataByKey } from '../AppData/useUISettings';
|
16
19
|
import { VideoTileContext } from '../hooks/useVideoTileLayout';
|
17
20
|
import PeersSorter from '../../common/PeersSorter';
|
18
21
|
import { APP_DATA } from '../../common/constants';
|
19
|
-
const RoleProminence = React.lazy(() =>
|
20
|
-
import('./RoleProminence').then(module => ({ default: module.RoleProminence })),
|
21
|
-
);
|
22
|
-
const ScreenshareLayout = React.lazy(() =>
|
23
|
-
import('./ScreenshareLayout').then(module => ({ default: module.ScreenshareLayout })),
|
24
|
-
);
|
25
|
-
const WhiteboardLayout = React.lazy(() =>
|
26
|
-
import('./WhiteboardLayout').then(module => ({ default: module.WhiteboardLayout })),
|
27
|
-
);
|
28
22
|
|
29
23
|
export type TileCustomisationProps = {
|
30
24
|
hide_participant_name_on_tile: boolean;
|
@@ -114,44 +108,38 @@ export const GridLayout = ({
|
|
114
108
|
|
115
109
|
if (peerSharing) {
|
116
110
|
return (
|
117
|
-
<
|
118
|
-
<
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
</VideoTileContext.Provider>
|
126
|
-
</Suspense>
|
111
|
+
<VideoTileContext.Provider value={tileLayout}>
|
112
|
+
<ScreenshareLayout
|
113
|
+
peers={sortedPeers}
|
114
|
+
onPageSize={setPageSize}
|
115
|
+
onPageChange={setMainPage}
|
116
|
+
edgeToEdge={edge_to_edge}
|
117
|
+
/>
|
118
|
+
</VideoTileContext.Provider>
|
127
119
|
);
|
128
120
|
} else if (whiteboard?.open) {
|
129
121
|
return (
|
130
|
-
<
|
131
|
-
<
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
</VideoTileContext.Provider>
|
139
|
-
</Suspense>
|
122
|
+
<VideoTileContext.Provider value={tileLayout}>
|
123
|
+
<WhiteboardLayout
|
124
|
+
peers={sortedPeers}
|
125
|
+
onPageSize={setPageSize}
|
126
|
+
onPageChange={setMainPage}
|
127
|
+
edgeToEdge={edge_to_edge}
|
128
|
+
/>
|
129
|
+
</VideoTileContext.Provider>
|
140
130
|
);
|
141
131
|
} else if (isRoleProminence) {
|
142
132
|
return (
|
143
|
-
<
|
144
|
-
<
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
</VideoTileContext.Provider>
|
154
|
-
</Suspense>
|
133
|
+
<VideoTileContext.Provider value={tileLayout}>
|
134
|
+
<RoleProminence
|
135
|
+
peers={sortedPeers}
|
136
|
+
onPageSize={setPageSize}
|
137
|
+
onPageChange={setMainPage}
|
138
|
+
prominentRoles={prominentRoles}
|
139
|
+
isInsetEnabled={isInsetEnabled}
|
140
|
+
edgeToEdge={edge_to_edge}
|
141
|
+
/>
|
142
|
+
</VideoTileContext.Provider>
|
155
143
|
);
|
156
144
|
}
|
157
145
|
return (
|
@@ -70,9 +70,9 @@ const SecondarySection = ({
|
|
70
70
|
rootCSS={{
|
71
71
|
padding: 0,
|
72
72
|
maxWidth: 240,
|
73
|
-
aspectRatio:
|
73
|
+
aspectRatio: 16 / 9,
|
74
74
|
...(hasSidebar ? { w: '100%' } : { h: '100%' }),
|
75
|
-
'@md': { aspectRatio:
|
75
|
+
'@md': { aspectRatio: 1 },
|
76
76
|
}}
|
77
77
|
objectFit="contain"
|
78
78
|
{...tileLayoutProps}
|
@@ -25,9 +25,7 @@ const Root = ({
|
|
25
25
|
bg: '$surface_bright',
|
26
26
|
border: `4px solid ${isActive ? '$primary_default' : '$surface_dim'}`,
|
27
27
|
cursor: 'pointer',
|
28
|
-
'
|
29
|
-
'&:hover': { border: '4px solid $primary_dim' },
|
30
|
-
},
|
28
|
+
'&:hover': { border: '4px solid $primary_dim' },
|
31
29
|
...(mediaURL ? { height: '$20', backgroundImage: `url("${mediaURL}")`, backgroundSize: 'cover' } : {}),
|
32
30
|
}}
|
33
31
|
onClick={async () => {
|
@@ -180,9 +180,6 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
|
|
180
180
|
onClick: async () => {
|
181
181
|
await VBHandler.removeEffects();
|
182
182
|
hmsActions.setAppData(APP_DATA.background, HMSVirtualBackgroundTypes.NONE);
|
183
|
-
if (isMobile) {
|
184
|
-
toggleVB();
|
185
|
-
}
|
186
183
|
},
|
187
184
|
supported: true,
|
188
185
|
},
|
@@ -238,9 +235,6 @@ export const VBPicker = ({ backgroundMedia = [] }: { backgroundMedia: VirtualBac
|
|
238
235
|
onClick: async () => {
|
239
236
|
await VBHandler?.setBackground(mediaURL);
|
240
237
|
hmsActions.setAppData(APP_DATA.background, mediaURL);
|
241
|
-
if (isMobile) {
|
242
|
-
toggleVB();
|
243
|
-
}
|
244
238
|
},
|
245
239
|
supported: true,
|
246
240
|
}))}
|
@@ -1,10 +1,14 @@
|
|
1
|
-
import React, {
|
1
|
+
import React, { useEffect } from 'react';
|
2
2
|
import { useMedia } from 'react-use';
|
3
3
|
import { match } from 'ts-pattern';
|
4
4
|
import { selectAppData, selectVideoTrackByPeerID, useHMSStore } from '@100mslive/react-sdk';
|
5
|
+
import { Polls } from '../components/Polls/Polls';
|
6
|
+
import { RoomDetailsPane } from '../components/RoomDetails/RoomDetailsPane';
|
5
7
|
import { LayoutMode } from '../components/Settings/LayoutSettings';
|
8
|
+
import { SidePaneTabs } from '../components/SidePaneTabs';
|
6
9
|
import { TileCustomisationProps } from '../components/VideoLayouts/GridLayout';
|
7
10
|
import VideoTile from '../components/VideoTile';
|
11
|
+
import { VBPicker } from '../components/VirtualBackground/VBPicker';
|
8
12
|
import { Flex } from '../../Layout';
|
9
13
|
import { config as cssConfig, styled } from '../../Theme';
|
10
14
|
// @ts-ignore: No implicit Any
|
@@ -18,16 +22,6 @@ import {
|
|
18
22
|
import { useLandscapeHLSStream, useMobileHLSStream } from '../common/hooks';
|
19
23
|
import { translateAcross } from '../../utils';
|
20
24
|
import { APP_DATA, SIDE_PANE_OPTIONS, UI_SETTINGS } from '../common/constants';
|
21
|
-
const SidePaneTabs = React.lazy(() =>
|
22
|
-
import('../components/SidePaneTabs').then(module => ({ default: module.SidePaneTabs })),
|
23
|
-
);
|
24
|
-
const Polls = React.lazy(() => import('../components/Polls/Polls').then(module => ({ default: module.Polls })));
|
25
|
-
const RoomDetailsPane = React.lazy(() =>
|
26
|
-
import('../components/RoomDetails/RoomDetailsPane').then(module => ({ default: module.RoomDetailsPane })),
|
27
|
-
);
|
28
|
-
const VBPicker = React.lazy(() =>
|
29
|
-
import('../components/VirtualBackground/VBPicker').then(module => ({ default: module.VBPicker })),
|
30
|
-
);
|
31
25
|
|
32
26
|
const Wrapper = styled('div', {
|
33
27
|
w: '$100',
|
@@ -239,7 +233,7 @@ const SidePane = ({
|
|
239
233
|
{...tileLayout}
|
240
234
|
/>
|
241
235
|
)}
|
242
|
-
|
236
|
+
{SidepaneComponent}
|
243
237
|
</Flex>
|
244
238
|
);
|
245
239
|
};
|
@@ -19,7 +19,13 @@ import FullPageProgress from '../components/FullPageProgress';
|
|
19
19
|
import { GridLayout } from '../components/VideoLayouts/GridLayout';
|
20
20
|
import { Box, Flex } from '../../Layout';
|
21
21
|
import { config } from '../../Theme';
|
22
|
+
// @ts-ignore: No implicit Any
|
23
|
+
import { EmbedView } from './EmbedView';
|
24
|
+
// @ts-ignore: No implicit Any
|
25
|
+
import { PDFView } from './PDFView';
|
22
26
|
import SidePane from './SidePane';
|
27
|
+
// @ts-ignore: No implicit Any
|
28
|
+
import { WaitingView } from './WaitingView';
|
23
29
|
import { CaptionsViewer } from '../plugins/CaptionsViewer';
|
24
30
|
// @ts-ignore: No implicit Any
|
25
31
|
import { usePDFConfig, useUrlToEmbed } from '../components/AppData/useUISettings';
|
@@ -28,11 +34,6 @@ import { useLandscapeHLSStream, useMobileHLSStream, useWaitingRoomInfo } from '.
|
|
28
34
|
import { SESSION_STORE_KEY } from '../common/constants';
|
29
35
|
// @ts-ignore: No implicit Any
|
30
36
|
const HLSView = React.lazy(() => import('./HLSView'));
|
31
|
-
// @ts-ignore: No implicit Any
|
32
|
-
const EmbedView = React.lazy(() => import('./EmbedView').then(module => ({ default: module.EmbedView })));
|
33
|
-
// @ts-ignore: No implicit Any
|
34
|
-
const PDFView = React.lazy(() => import('./PDFView').then(module => ({ default: module.PDFView })));
|
35
|
-
const WaitingView = React.lazy(() => import('./WaitingView').then(module => ({ default: module.WaitingView })));
|
36
37
|
|
37
38
|
export const VideoStreamingSection = ({
|
38
39
|
screenType,
|
@@ -78,18 +79,18 @@ export const VideoStreamingSection = ({
|
|
78
79
|
}
|
79
80
|
|
80
81
|
return (
|
81
|
-
<
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
82
|
+
<Suspense fallback={<FullPageProgress />}>
|
83
|
+
<Flex
|
84
|
+
css={{
|
85
|
+
size: '100%',
|
86
|
+
position: 'relative',
|
87
|
+
gap: isMobileHLSStream || isLandscapeHLSStream ? '0' : '$4',
|
88
|
+
}}
|
89
|
+
direction={match<Record<string, boolean>, 'row' | 'column'>({ isLandscapeHLSStream, isMobileHLSStream })
|
90
|
+
.with({ isLandscapeHLSStream: true }, () => 'row')
|
91
|
+
.with({ isMobileHLSStream: true }, () => 'column')
|
92
|
+
.otherwise(() => 'row')}
|
93
|
+
>
|
93
94
|
{match({
|
94
95
|
screenType,
|
95
96
|
isNotAllowedToPublish,
|
@@ -141,29 +142,27 @@ export const VideoStreamingSection = ({
|
|
141
142
|
return <GridLayout {...(elements as DefaultConferencingScreen_Elements)?.video_tile_layout?.grid} />;
|
142
143
|
})}
|
143
144
|
<CaptionsViewer setDefaultPosition={setCaptionPosition} defaultPosition={captionPosition} />
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
>
|
158
|
-
<Suspense fallback={<></>}>
|
145
|
+
<Box
|
146
|
+
css={{
|
147
|
+
flex: match({ isLandscapeHLSStream, isMobileHLSStream })
|
148
|
+
.with({ isLandscapeHLSStream: true }, () => '1 1 0')
|
149
|
+
.with({ isMobileHLSStream: true }, () => '2 1 0')
|
150
|
+
.otherwise(() => undefined),
|
151
|
+
position: 'relative',
|
152
|
+
height: !isMobileHLSStream ? '100%' : undefined,
|
153
|
+
maxHeight: '100%',
|
154
|
+
'&:empty': { display: 'none' },
|
155
|
+
overflowY: 'clip',
|
156
|
+
}}
|
157
|
+
>
|
159
158
|
<SidePane
|
160
159
|
screenType={screenType}
|
161
160
|
// @ts-ignore
|
162
161
|
tileProps={(elements as DefaultConferencingScreen_Elements)?.video_tile_layout?.grid}
|
163
162
|
hideControls={hideControls}
|
164
163
|
/>
|
165
|
-
</
|
166
|
-
</
|
167
|
-
</
|
164
|
+
</Box>
|
165
|
+
</Flex>
|
166
|
+
</Suspense>
|
168
167
|
);
|
169
168
|
};
|