@100mslive/roomkit-react 0.2.8-alpha.11 → 0.2.8-alpha.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{HLSView-EDROW5VZ.js → HLSView-GW7SOMJR.js} +17 -14
- package/dist/HLSView-GW7SOMJR.js.map +7 -0
- package/dist/Prebuilt/components/Chat/Chat.d.ts +1 -1
- package/dist/{chunk-YFJQ4B6X.js → chunk-NZYSHCWW.js} +9 -6
- package/dist/{chunk-YFJQ4B6X.js.map → chunk-NZYSHCWW.js.map} +2 -2
- package/dist/index.cjs.js +63 -57
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/meta.cjs.json +19 -9
- package/dist/meta.esbuild.json +28 -18
- package/package.json +6 -6
- package/src/Prebuilt/components/Chat/Chat.tsx +4 -0
- package/src/Prebuilt/components/Chat/ChatFooter.tsx +1 -1
- package/src/Prebuilt/components/ConferenceScreen.tsx +1 -1
- package/src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx +6 -4
- package/src/Prebuilt/layouts/HLSView.jsx +59 -47
- package/dist/HLSView-EDROW5VZ.js.map +0 -7
package/dist/index.js
CHANGED
package/dist/meta.cjs.json
CHANGED
@@ -8446,7 +8446,7 @@
|
|
8446
8446
|
"format": "esm"
|
8447
8447
|
},
|
8448
8448
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
8449
|
-
"bytes":
|
8449
|
+
"bytes": 4861,
|
8450
8450
|
"imports": [
|
8451
8451
|
{
|
8452
8452
|
"path": "react",
|
@@ -11259,7 +11259,7 @@
|
|
11259
11259
|
"format": "esm"
|
11260
11260
|
},
|
11261
11261
|
"src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx": {
|
11262
|
-
"bytes":
|
11262
|
+
"bytes": 2527,
|
11263
11263
|
"imports": [
|
11264
11264
|
{
|
11265
11265
|
"path": "react",
|
@@ -11315,7 +11315,7 @@
|
|
11315
11315
|
"format": "esm"
|
11316
11316
|
},
|
11317
11317
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
11318
|
-
"bytes":
|
11318
|
+
"bytes": 26644,
|
11319
11319
|
"imports": [
|
11320
11320
|
{
|
11321
11321
|
"path": "react",
|
@@ -11337,6 +11337,11 @@
|
|
11337
11337
|
"kind": "import-statement",
|
11338
11338
|
"external": true
|
11339
11339
|
},
|
11340
|
+
{
|
11341
|
+
"path": "ts-pattern",
|
11342
|
+
"kind": "import-statement",
|
11343
|
+
"external": true
|
11344
|
+
},
|
11340
11345
|
{
|
11341
11346
|
"path": "@100mslive/react-sdk",
|
11342
11347
|
"kind": "import-statement",
|
@@ -13602,7 +13607,7 @@
|
|
13602
13607
|
"imports": [],
|
13603
13608
|
"exports": [],
|
13604
13609
|
"inputs": {},
|
13605
|
-
"bytes":
|
13610
|
+
"bytes": 3261721
|
13606
13611
|
},
|
13607
13612
|
"dist/index.cjs.js": {
|
13608
13613
|
"imports": [
|
@@ -16071,6 +16076,11 @@
|
|
16071
16076
|
"kind": "require-call",
|
16072
16077
|
"external": true
|
16073
16078
|
},
|
16079
|
+
{
|
16080
|
+
"path": "ts-pattern",
|
16081
|
+
"kind": "require-call",
|
16082
|
+
"external": true
|
16083
|
+
},
|
16074
16084
|
{
|
16075
16085
|
"path": "@100mslive/react-sdk",
|
16076
16086
|
"kind": "require-call",
|
@@ -16506,7 +16516,7 @@
|
|
16506
16516
|
"entryPoint": "src/index.ts",
|
16507
16517
|
"inputs": {
|
16508
16518
|
"<define:process.env>": {
|
16509
|
-
"bytesInOutput":
|
16519
|
+
"bytesInOutput": 18237
|
16510
16520
|
},
|
16511
16521
|
"src/Theme/base.config.ts": {
|
16512
16522
|
"bytesInOutput": 6104
|
@@ -17235,7 +17245,7 @@
|
|
17235
17245
|
"bytesInOutput": 6106
|
17236
17246
|
},
|
17237
17247
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
17238
|
-
"bytesInOutput":
|
17248
|
+
"bytesInOutput": 5683
|
17239
17249
|
},
|
17240
17250
|
"src/Prebuilt/components/Footer/PaginatedParticipants.tsx": {
|
17241
17251
|
"bytesInOutput": 5344
|
@@ -17409,10 +17419,10 @@
|
|
17409
17419
|
"bytesInOutput": 8496
|
17410
17420
|
},
|
17411
17421
|
"src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx": {
|
17412
|
-
"bytesInOutput":
|
17422
|
+
"bytesInOutput": 2886
|
17413
17423
|
},
|
17414
17424
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
17415
|
-
"bytesInOutput":
|
17425
|
+
"bytesInOutput": 31106
|
17416
17426
|
},
|
17417
17427
|
"src/Prebuilt/layouts/VideoStreamingSection.tsx": {
|
17418
17428
|
"bytesInOutput": 5017
|
@@ -17550,7 +17560,7 @@
|
|
17550
17560
|
"bytesInOutput": 2980
|
17551
17561
|
}
|
17552
17562
|
},
|
17553
|
-
"bytes":
|
17563
|
+
"bytes": 1549169
|
17554
17564
|
}
|
17555
17565
|
}
|
17556
17566
|
}
|
package/dist/meta.esbuild.json
CHANGED
@@ -8446,7 +8446,7 @@
|
|
8446
8446
|
"format": "esm"
|
8447
8447
|
},
|
8448
8448
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
8449
|
-
"bytes":
|
8449
|
+
"bytes": 4861,
|
8450
8450
|
"imports": [
|
8451
8451
|
{
|
8452
8452
|
"path": "react",
|
@@ -11259,7 +11259,7 @@
|
|
11259
11259
|
"format": "esm"
|
11260
11260
|
},
|
11261
11261
|
"src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx": {
|
11262
|
-
"bytes":
|
11262
|
+
"bytes": 2527,
|
11263
11263
|
"imports": [
|
11264
11264
|
{
|
11265
11265
|
"path": "react",
|
@@ -11315,7 +11315,7 @@
|
|
11315
11315
|
"format": "esm"
|
11316
11316
|
},
|
11317
11317
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
11318
|
-
"bytes":
|
11318
|
+
"bytes": 26644,
|
11319
11319
|
"imports": [
|
11320
11320
|
{
|
11321
11321
|
"path": "react",
|
@@ -11337,6 +11337,11 @@
|
|
11337
11337
|
"kind": "import-statement",
|
11338
11338
|
"external": true
|
11339
11339
|
},
|
11340
|
+
{
|
11341
|
+
"path": "ts-pattern",
|
11342
|
+
"kind": "import-statement",
|
11343
|
+
"external": true
|
11344
|
+
},
|
11340
11345
|
{
|
11341
11346
|
"path": "@100mslive/react-sdk",
|
11342
11347
|
"kind": "import-statement",
|
@@ -13607,7 +13612,7 @@
|
|
13607
13612
|
"dist/index.js": {
|
13608
13613
|
"imports": [
|
13609
13614
|
{
|
13610
|
-
"path": "dist/chunk-
|
13615
|
+
"path": "dist/chunk-NZYSHCWW.js",
|
13611
13616
|
"kind": "import-statement"
|
13612
13617
|
}
|
13613
13618
|
],
|
@@ -13680,16 +13685,16 @@
|
|
13680
13685
|
"inputs": {},
|
13681
13686
|
"bytes": 1822
|
13682
13687
|
},
|
13683
|
-
"dist/HLSView-
|
13688
|
+
"dist/HLSView-GW7SOMJR.js.map": {
|
13684
13689
|
"imports": [],
|
13685
13690
|
"exports": [],
|
13686
13691
|
"inputs": {},
|
13687
|
-
"bytes":
|
13692
|
+
"bytes": 89060
|
13688
13693
|
},
|
13689
|
-
"dist/HLSView-
|
13694
|
+
"dist/HLSView-GW7SOMJR.js": {
|
13690
13695
|
"imports": [
|
13691
13696
|
{
|
13692
|
-
"path": "dist/chunk-
|
13697
|
+
"path": "dist/chunk-NZYSHCWW.js",
|
13693
13698
|
"kind": "import-statement"
|
13694
13699
|
},
|
13695
13700
|
{
|
@@ -13712,6 +13717,11 @@
|
|
13712
13717
|
"kind": "import-statement",
|
13713
13718
|
"external": true
|
13714
13719
|
},
|
13720
|
+
{
|
13721
|
+
"path": "ts-pattern",
|
13722
|
+
"kind": "import-statement",
|
13723
|
+
"external": true
|
13724
|
+
},
|
13715
13725
|
{
|
13716
13726
|
"path": "@100mslive/react-sdk",
|
13717
13727
|
"kind": "import-statement",
|
@@ -13849,7 +13859,7 @@
|
|
13849
13859
|
"entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
|
13850
13860
|
"inputs": {
|
13851
13861
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
13852
|
-
"bytesInOutput":
|
13862
|
+
"bytesInOutput": 25475
|
13853
13863
|
},
|
13854
13864
|
"src/Prebuilt/components/HlsStatsOverlay.jsx": {
|
13855
13865
|
"bytesInOutput": 3521
|
@@ -13897,18 +13907,18 @@
|
|
13897
13907
|
"bytesInOutput": 7482
|
13898
13908
|
},
|
13899
13909
|
"src/Prebuilt/components/HMSVideo/MwebHLSViewTitle.tsx": {
|
13900
|
-
"bytesInOutput":
|
13910
|
+
"bytesInOutput": 2101
|
13901
13911
|
}
|
13902
13912
|
},
|
13903
|
-
"bytes":
|
13913
|
+
"bytes": 54519
|
13904
13914
|
},
|
13905
|
-
"dist/chunk-
|
13915
|
+
"dist/chunk-NZYSHCWW.js.map": {
|
13906
13916
|
"imports": [],
|
13907
13917
|
"exports": [],
|
13908
13918
|
"inputs": {},
|
13909
|
-
"bytes":
|
13919
|
+
"bytes": 3168077
|
13910
13920
|
},
|
13911
|
-
"dist/chunk-
|
13921
|
+
"dist/chunk-NZYSHCWW.js": {
|
13912
13922
|
"imports": [
|
13913
13923
|
{
|
13914
13924
|
"path": "react",
|
@@ -16276,7 +16286,7 @@
|
|
16276
16286
|
"external": true
|
16277
16287
|
},
|
16278
16288
|
{
|
16279
|
-
"path": "dist/HLSView-
|
16289
|
+
"path": "dist/HLSView-GW7SOMJR.js",
|
16280
16290
|
"kind": "dynamic-import"
|
16281
16291
|
},
|
16282
16292
|
{
|
@@ -16750,7 +16760,7 @@
|
|
16750
16760
|
],
|
16751
16761
|
"inputs": {
|
16752
16762
|
"<define:process.env>": {
|
16753
|
-
"bytesInOutput":
|
16763
|
+
"bytesInOutput": 18237
|
16754
16764
|
},
|
16755
16765
|
"../../node_modules/lodash/lodash.js": {
|
16756
16766
|
"bytesInOutput": 224291
|
@@ -17413,7 +17423,7 @@
|
|
17413
17423
|
"bytesInOutput": 7554
|
17414
17424
|
},
|
17415
17425
|
"src/Prebuilt/components/Chat/Chat.tsx": {
|
17416
|
-
"bytesInOutput":
|
17426
|
+
"bytesInOutput": 4500
|
17417
17427
|
},
|
17418
17428
|
"src/Prebuilt/components/Chat/ChatBody.tsx": {
|
17419
17429
|
"bytesInOutput": 14396
|
@@ -17704,7 +17714,7 @@
|
|
17704
17714
|
"bytesInOutput": 651
|
17705
17715
|
}
|
17706
17716
|
},
|
17707
|
-
"bytes":
|
17717
|
+
"bytes": 1298090
|
17708
17718
|
}
|
17709
17719
|
}
|
17710
17720
|
}
|
package/package.json
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
"prebuilt",
|
11
11
|
"roomkit"
|
12
12
|
],
|
13
|
-
"version": "0.2.8-alpha.
|
13
|
+
"version": "0.2.8-alpha.13",
|
14
14
|
"author": "100ms",
|
15
15
|
"license": "MIT",
|
16
16
|
"repository": {
|
@@ -82,11 +82,11 @@
|
|
82
82
|
"react": ">=17.0.2 <19.0.0"
|
83
83
|
},
|
84
84
|
"dependencies": {
|
85
|
-
"@100mslive/hls-player": "0.2.8-alpha.
|
85
|
+
"@100mslive/hls-player": "0.2.8-alpha.13",
|
86
86
|
"@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
|
87
|
-
"@100mslive/hms-virtual-background": "1.12.8-alpha.
|
88
|
-
"@100mslive/react-icons": "0.9.8-alpha.
|
89
|
-
"@100mslive/react-sdk": "0.9.8-alpha.
|
87
|
+
"@100mslive/hms-virtual-background": "1.12.8-alpha.13",
|
88
|
+
"@100mslive/react-icons": "0.9.8-alpha.13",
|
89
|
+
"@100mslive/react-sdk": "0.9.8-alpha.13",
|
90
90
|
"@100mslive/types-prebuilt": "0.12.7",
|
91
91
|
"@emoji-mart/data": "^1.0.6",
|
92
92
|
"@emoji-mart/react": "^1.0.1",
|
@@ -122,5 +122,5 @@
|
|
122
122
|
"uuid": "^8.3.2",
|
123
123
|
"worker-timers": "^7.0.40"
|
124
124
|
},
|
125
|
-
"gitHead": "
|
125
|
+
"gitHead": "32846269661b59363b8e38f5fd66a26895a29b96"
|
126
126
|
}
|
@@ -273,7 +273,7 @@ export const ChatFooter = ({ onSend, children }: { onSend: (count: number) => vo
|
|
273
273
|
css={{
|
274
274
|
alignItems: 'center',
|
275
275
|
}}
|
276
|
-
gap="
|
276
|
+
gap="2"
|
277
277
|
>
|
278
278
|
{noAVPermissions ? <RaiseHand css={{ bg: '$surface_default' }} /> : null}
|
279
279
|
<MoreSettings elements={elements} screenType={screenType} />
|
@@ -200,7 +200,7 @@ export const ConferenceScreen = () => {
|
|
200
200
|
position: 'relative',
|
201
201
|
}}
|
202
202
|
justify="end"
|
203
|
-
gap="
|
203
|
+
gap="2"
|
204
204
|
>
|
205
205
|
{noAVPermissions ? <RaiseHand /> : null}
|
206
206
|
<MoreSettings elements={screenProps.elements} screenType={screenProps.screenType} />
|
@@ -17,7 +17,7 @@ import { SIDE_PANE_OPTIONS } from '../../common/constants';
|
|
17
17
|
half page will have chat or participant view
|
18
18
|
*/
|
19
19
|
export const HLSViewTitle = () => {
|
20
|
-
const { title, details } = useRoomLayoutHeader();
|
20
|
+
const { title, details, description } = useRoomLayoutHeader();
|
21
21
|
const toggleDetailsPane = useSidepaneToggle(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
22
22
|
const isDetailSidepaneOpen = useIsSidepaneTypeOpen(SIDE_PANE_OPTIONS.ROOM_DETAILS);
|
23
23
|
|
@@ -74,9 +74,11 @@ export const HLSViewTitle = () => {
|
|
74
74
|
) : null}
|
75
75
|
<Flex>
|
76
76
|
<RoomDetailsRow details={details} />
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
{description ? (
|
78
|
+
<Text variant="caption" css={{ color: '$on_surface_medium' }} onClick={toggleDetailsPane}>
|
79
|
+
...more
|
80
|
+
</Text>
|
81
|
+
) : null}
|
80
82
|
</Flex>
|
81
83
|
</Flex>
|
82
84
|
</Flex>
|
@@ -2,6 +2,7 @@ import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
2
|
import { useFullscreen, useMedia, usePrevious, useToggle } from 'react-use';
|
3
3
|
import { HLSPlaybackState, HMSHLSPlayer, HMSHLSPlayerEvents } from '@100mslive/hls-player';
|
4
4
|
import screenfull from 'screenfull';
|
5
|
+
import { match, P } from 'ts-pattern';
|
5
6
|
import {
|
6
7
|
HLSPlaylistType,
|
7
8
|
HMSNotificationTypes,
|
@@ -47,11 +48,20 @@ const ToggleChat = () => {
|
|
47
48
|
const toggleChat = useSidepaneToggle(SIDE_PANE_OPTIONS.CHAT);
|
48
49
|
const showChat = !!elements?.chat;
|
49
50
|
const isMobile = useMedia(config.media.md);
|
51
|
+
const hmsActions = useHMSActions();
|
52
|
+
|
50
53
|
useEffect(() => {
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
54
|
+
match({ sidepane, isMobile, showChat })
|
55
|
+
.with({ isMobile: true, showChat: true, sidepane: P.when(value => !value) }, () => {
|
56
|
+
toggleChat();
|
57
|
+
})
|
58
|
+
.with({ showChat: false, isMobile: true, sidepane: SIDE_PANE_OPTIONS.CHAT }, () => {
|
59
|
+
hmsActions.setAppData(APP_DATA.sidePane, '');
|
60
|
+
})
|
61
|
+
.otherwise(() => {
|
62
|
+
//do nothing
|
63
|
+
});
|
64
|
+
}, [sidepane, isMobile, toggleChat, showChat, hmsActions]);
|
55
65
|
return null;
|
56
66
|
};
|
57
67
|
const HLSView = () => {
|
@@ -455,49 +465,51 @@ const HLSView = () => {
|
|
455
465
|
<>
|
456
466
|
{isMobile || isLandscape ? (
|
457
467
|
<>
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
468
|
+
<Flex
|
469
|
+
align="center"
|
470
|
+
justify="center"
|
471
|
+
css={{
|
472
|
+
position: 'absolute',
|
473
|
+
bg: '#00000066',
|
474
|
+
display: 'inline-flex',
|
475
|
+
gap: '$2',
|
476
|
+
zIndex: 1,
|
477
|
+
size: '100%',
|
478
|
+
visibility: controlsVisible ? `` : `hidden`,
|
479
|
+
opacity: controlsVisible ? `1` : '0',
|
480
|
+
}}
|
481
|
+
>
|
482
|
+
{!showLoader && hlsState?.variants[0]?.playlist_type === HLSPlaylistType.DVR && (
|
483
|
+
<>
|
484
|
+
<HMSVideoPlayer.Seeker
|
485
|
+
title="backward"
|
486
|
+
css={{
|
487
|
+
visibility: isSeekEnabled ? `` : `hidden`,
|
488
|
+
opacity: isSeekEnabled ? `1` : '0',
|
489
|
+
}}
|
490
|
+
>
|
491
|
+
<BackwardArrowIcon width={32} height={32} />
|
492
|
+
</HMSVideoPlayer.Seeker>
|
493
|
+
<Box
|
494
|
+
css={{
|
495
|
+
bg: 'rgba(0, 0, 0, 0.6)',
|
496
|
+
r: '$round',
|
497
|
+
}}
|
498
|
+
>
|
499
|
+
<HMSVideoPlayer.PlayPauseButton isPaused={isPaused} width={48} height={48} />
|
500
|
+
</Box>
|
501
|
+
<HMSVideoPlayer.Seeker
|
502
|
+
title="forward"
|
503
|
+
css={{
|
504
|
+
visibility: isSeekEnabled ? `` : `hidden`,
|
505
|
+
opacity: isSeekEnabled ? `1` : '0',
|
506
|
+
}}
|
507
|
+
>
|
508
|
+
<ForwardArrowIcon width={32} height={32} />
|
509
|
+
</HMSVideoPlayer.Seeker>
|
510
|
+
</>
|
511
|
+
)}
|
512
|
+
</Flex>
|
501
513
|
<Flex
|
502
514
|
ref={controlsRef}
|
503
515
|
direction="column"
|