@100mslive/roomkit-react 0.3.22-alpha.2 → 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-XRGOWFRB.js → HLSView-CSOBLYBP.js} +24 -38
- package/dist/HLSView-CSOBLYBP.js.map +7 -0
- package/dist/{PDFView-RJK44WVO.css → HLSView-QZMIDGI4.css} +3 -3
- package/dist/{EmbedView-Y24VRONT.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 +22687 -22873
- 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 +5125 -5444
- package/dist/meta.esbuild.json +6238 -9055
- 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 -11
- package/src/Prebuilt/components/Notifications/PeerNotifications.tsx +2 -23
- 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-5G5WGPIO.css +0 -2780
- package/dist/ConferenceScreen-5G5WGPIO.css.map +0 -7
- package/dist/ConferenceScreen-KS5URW6Z.js +0 -1778
- package/dist/ConferenceScreen-KS5URW6Z.js.map +0 -7
- package/dist/EmbedView-BCRQ3GHV.js +0 -17
- package/dist/EmbedView-BCRQ3GHV.js.map +0 -7
- package/dist/EmbedView-Y24VRONT.css +0 -2780
- package/dist/EmojiReaction-NA5F5DWN.js +0 -11
- package/dist/EmojiReaction-NA5F5DWN.js.map +0 -7
- package/dist/HLSView-DC43TOIW.css +0 -2780
- package/dist/HLSView-DC43TOIW.css.map +0 -7
- package/dist/HLSView-XRGOWFRB.js.map +0 -7
- package/dist/LeaveScreen-3OZN3MU3.css +0 -2780
- package/dist/LeaveScreen-3OZN3MU3.css.map +0 -7
- package/dist/LeaveScreen-PC4KB6OG.js +0 -556
- package/dist/LeaveScreen-PC4KB6OG.js.map +0 -7
- package/dist/MoreSettings-KTRYHDB2.css +0 -2780
- package/dist/MoreSettings-KTRYHDB2.css.map +0 -7
- package/dist/MoreSettings-XLNYT7PW.js +0 -16
- package/dist/MoreSettings-XLNYT7PW.js.map +0 -7
- package/dist/PDFView-LJ7I3K3H.js +0 -84
- package/dist/PDFView-LJ7I3K3H.js.map +0 -7
- package/dist/PDFView-RJK44WVO.css.map +0 -7
- package/dist/Polls-AULCHMLW.js +0 -1584
- package/dist/Polls-AULCHMLW.js.map +0 -7
- package/dist/Polls-K4GO5ZOC.css +0 -2780
- package/dist/Polls-K4GO5ZOC.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/RaiseHand-E4OVMBW6.js +0 -10
- package/dist/RaiseHand-E4OVMBW6.js.map +0 -7
- package/dist/RoleProminence-LHUXHLVI.css +0 -2780
- package/dist/RoleProminence-LHUXHLVI.css.map +0 -7
- package/dist/RoleProminence-RWJP2Z36.js +0 -116
- package/dist/RoleProminence-RWJP2Z36.js.map +0 -7
- package/dist/RoomDetailsPane-6BM2FPWW.css +0 -2780
- package/dist/RoomDetailsPane-6BM2FPWW.css.map +0 -7
- package/dist/RoomDetailsPane-7OP2CNJW.js +0 -53
- package/dist/RoomDetailsPane-7OP2CNJW.js.map +0 -7
- package/dist/ScreenshareLayout-RHTD2PQT.css +0 -2780
- package/dist/ScreenshareLayout-RHTD2PQT.css.map +0 -7
- package/dist/ScreenshareLayout-TM7DLYLH.js +0 -358
- package/dist/ScreenshareLayout-TM7DLYLH.js.map +0 -7
- package/dist/SidePaneTabs-T7BKZ2AT.js +0 -1354
- package/dist/SidePaneTabs-T7BKZ2AT.js.map +0 -7
- package/dist/SidePaneTabs-TBUPHNAU.css +0 -2780
- package/dist/SidePaneTabs-TBUPHNAU.css.map +0 -7
- package/dist/VBPicker-M5VYFEUB.css +0 -2780
- package/dist/VBPicker-M5VYFEUB.css.map +0 -7
- package/dist/VBPicker-TQLIL3NC.js +0 -322
- package/dist/VBPicker-TQLIL3NC.js.map +0 -7
- package/dist/WaitingView-TLJ52XYA.js +0 -10
- package/dist/WaitingView-TLJ52XYA.js.map +0 -7
- package/dist/WhiteboardLayout-PZZTM2FW.css +0 -2780
- package/dist/WhiteboardLayout-PZZTM2FW.css.map +0 -7
- package/dist/WhiteboardLayout-YYZ5UVGG.js +0 -96
- package/dist/WhiteboardLayout-YYZ5UVGG.js.map +0 -7
- package/dist/android-perm-1.png +0 -0
- package/dist/audio-level.png +0 -0
- package/dist/chunk-42XPBCZO.js +0 -487
- package/dist/chunk-42XPBCZO.js.map +0 -7
- package/dist/chunk-4BQ3AMVG.js +0 -16802
- package/dist/chunk-4BQ3AMVG.js.map +0 -7
- package/dist/chunk-4L5OKEIV.js +0 -90
- package/dist/chunk-4L5OKEIV.js.map +0 -7
- package/dist/chunk-6BX3VCVC.js +0 -6337
- package/dist/chunk-6BX3VCVC.js.map +0 -7
- package/dist/chunk-A3COGXMF.js +0 -114
- package/dist/chunk-A3COGXMF.js.map +0 -7
- package/dist/chunk-B3HHL3ND.js +0 -178
- package/dist/chunk-B3HHL3ND.js.map +0 -7
- package/dist/chunk-B5NLX6N6.js +0 -41
- package/dist/chunk-B5NLX6N6.js.map +0 -7
- package/dist/chunk-BXBPZGSP.js +0 -161
- package/dist/chunk-BXBPZGSP.js.map +0 -7
- package/dist/chunk-DVVFWHQG.js +0 -136
- package/dist/chunk-DVVFWHQG.js.map +0 -7
- package/dist/chunk-GV2DTYSU.js +0 -262
- package/dist/chunk-GV2DTYSU.js.map +0 -7
- package/dist/chunk-KF2YEUWU.js +0 -254
- package/dist/chunk-KF2YEUWU.js.map +0 -7
- package/dist/chunk-KQXTIHI6.js +0 -59
- package/dist/chunk-KQXTIHI6.js.map +0 -7
- package/dist/chunk-MR3HE7HV.js +0 -830
- package/dist/chunk-MR3HE7HV.js.map +0 -7
- package/dist/chunk-OQBTPJPO.js +0 -71
- package/dist/chunk-OQBTPJPO.js.map +0 -7
- package/dist/chunk-P7OOTR7P.js +0 -2595
- package/dist/chunk-P7OOTR7P.js.map +0 -7
- package/dist/chunk-THDU2DKP.js +0 -30
- package/dist/chunk-THDU2DKP.js.map +0 -7
- package/dist/chunk-U4QYH2BP.js +0 -98
- package/dist/chunk-U4QYH2BP.js.map +0 -7
- package/dist/chunk-USEEH3QW.js +0 -418
- package/dist/chunk-USEEH3QW.js.map +0 -7
- package/dist/chunk-UZW3C3ML.js +0 -171
- package/dist/chunk-UZW3C3ML.js.map +0 -7
- package/dist/chunk-YDIB6WKJ.js +0 -576
- package/dist/chunk-YDIB6WKJ.js.map +0 -7
- package/dist/chunk-ZFTULCCP.js +0 -62
- package/dist/chunk-ZFTULCCP.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
@@ -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
|
};
|