@100mslive/roomkit-react 0.3.11-alpha.4 → 0.3.11-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HLSView-GJNR5AIU.css → HLSView-4TKT4P7R.css} +3 -3
- package/dist/{HLSView-GJNR5AIU.css.map → HLSView-4TKT4P7R.css.map} +1 -1
- package/dist/{HLSView-MHOO2EMG.js → HLSView-EDTAEGGA.js} +2 -2
- package/dist/{chunk-GSFPM77I.js → chunk-6RJ75CE5.js} +10 -52
- package/dist/{chunk-GSFPM77I.js.map → chunk-6RJ75CE5.js.map} +3 -3
- package/dist/index.cjs.css +2 -2
- package/dist/index.cjs.css.map +1 -1
- package/dist/index.cjs.js +11 -35
- 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 +1 -1
- package/dist/meta.cjs.json +23 -18
- package/dist/meta.esbuild.json +35 -30
- package/package.json +7 -7
- package/src/Prebuilt/common/hooks.ts +5 -1
- package/src/Prebuilt/components/MoreSettings/CaptionContent.tsx +4 -2
- package/src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx +3 -36
- package/src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx +1 -16
- /package/dist/{HLSView-MHOO2EMG.js.map → HLSView-EDTAEGGA.js.map} +0 -0
package/dist/meta.esbuild.json
CHANGED
|
@@ -2884,7 +2884,7 @@
|
|
|
2884
2884
|
"format": "esm"
|
|
2885
2885
|
},
|
|
2886
2886
|
"src/Prebuilt/common/hooks.ts": {
|
|
2887
|
-
"bytes":
|
|
2887
|
+
"bytes": 8890,
|
|
2888
2888
|
"imports": [
|
|
2889
2889
|
{
|
|
2890
2890
|
"path": "react",
|
|
@@ -2936,6 +2936,11 @@
|
|
|
2936
2936
|
"kind": "import-statement",
|
|
2937
2937
|
"original": "../provider/roomLayoutProvider/hooks/useRoomLayoutScreen"
|
|
2938
2938
|
},
|
|
2939
|
+
{
|
|
2940
|
+
"path": "src/Prebuilt/common/utils.js",
|
|
2941
|
+
"kind": "import-statement",
|
|
2942
|
+
"original": "../common/utils"
|
|
2943
|
+
},
|
|
2939
2944
|
{
|
|
2940
2945
|
"path": "src/Prebuilt/common/constants.ts",
|
|
2941
2946
|
"kind": "import-statement",
|
|
@@ -3874,7 +3879,7 @@
|
|
|
3874
3879
|
"format": "esm"
|
|
3875
3880
|
},
|
|
3876
3881
|
"src/Prebuilt/components/MoreSettings/CaptionContent.tsx": {
|
|
3877
|
-
"bytes":
|
|
3882
|
+
"bytes": 4817,
|
|
3878
3883
|
"imports": [
|
|
3879
3884
|
{
|
|
3880
3885
|
"path": "react",
|
|
@@ -4162,7 +4167,7 @@
|
|
|
4162
4167
|
"format": "esm"
|
|
4163
4168
|
},
|
|
4164
4169
|
"src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx": {
|
|
4165
|
-
"bytes":
|
|
4170
|
+
"bytes": 8447,
|
|
4166
4171
|
"imports": [
|
|
4167
4172
|
{
|
|
4168
4173
|
"path": "react",
|
|
@@ -5110,7 +5115,7 @@
|
|
|
5110
5115
|
"format": "esm"
|
|
5111
5116
|
},
|
|
5112
5117
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
|
|
5113
|
-
"bytes":
|
|
5118
|
+
"bytes": 12430,
|
|
5114
5119
|
"imports": [
|
|
5115
5120
|
{
|
|
5116
5121
|
"path": "react",
|
|
@@ -10444,7 +10449,7 @@
|
|
|
10444
10449
|
],
|
|
10445
10450
|
"format": "esm"
|
|
10446
10451
|
},
|
|
10447
|
-
"../../../../../../../tmp/tmp-
|
|
10452
|
+
"../../../../../../../tmp/tmp-2882-2YUxhrGA2jsu/18fa993d4a82/tldraw.css": {
|
|
10448
10453
|
"bytes": 80111,
|
|
10449
10454
|
"imports": [
|
|
10450
10455
|
{
|
|
@@ -10494,7 +10499,7 @@
|
|
|
10494
10499
|
}
|
|
10495
10500
|
]
|
|
10496
10501
|
},
|
|
10497
|
-
"../../../../../../../tmp/tmp-
|
|
10502
|
+
"../../../../../../../tmp/tmp-2882-2YUxhrGA2jsu/18fa993d4310/index.css": {
|
|
10498
10503
|
"bytes": 597,
|
|
10499
10504
|
"imports": [
|
|
10500
10505
|
{
|
|
@@ -10503,7 +10508,7 @@
|
|
|
10503
10508
|
"external": true
|
|
10504
10509
|
},
|
|
10505
10510
|
{
|
|
10506
|
-
"path": "../../../../../../../tmp/tmp-
|
|
10511
|
+
"path": "../../../../../../../tmp/tmp-2882-2YUxhrGA2jsu/18fa993d4a82/tldraw.css",
|
|
10507
10512
|
"kind": "import-rule",
|
|
10508
10513
|
"original": "@tldraw/tldraw/tldraw.css"
|
|
10509
10514
|
}
|
|
@@ -10578,7 +10583,7 @@
|
|
|
10578
10583
|
"original": "../../common/constants"
|
|
10579
10584
|
},
|
|
10580
10585
|
{
|
|
10581
|
-
"path": "../../../../../../../tmp/tmp-
|
|
10586
|
+
"path": "../../../../../../../tmp/tmp-2882-2YUxhrGA2jsu/18fa993d4310/index.css",
|
|
10582
10587
|
"kind": "import-statement",
|
|
10583
10588
|
"original": "@100mslive/hms-whiteboard/index.css"
|
|
10584
10589
|
},
|
|
@@ -13666,7 +13671,7 @@
|
|
|
13666
13671
|
"dist/index.js": {
|
|
13667
13672
|
"imports": [
|
|
13668
13673
|
{
|
|
13669
|
-
"path": "dist/chunk-
|
|
13674
|
+
"path": "dist/chunk-6RJ75CE5.js",
|
|
13670
13675
|
"kind": "import-statement"
|
|
13671
13676
|
}
|
|
13672
13677
|
],
|
|
@@ -13740,16 +13745,16 @@
|
|
|
13740
13745
|
"inputs": {},
|
|
13741
13746
|
"bytes": 1822
|
|
13742
13747
|
},
|
|
13743
|
-
"dist/HLSView-
|
|
13748
|
+
"dist/HLSView-EDTAEGGA.js.map": {
|
|
13744
13749
|
"imports": [],
|
|
13745
13750
|
"exports": [],
|
|
13746
13751
|
"inputs": {},
|
|
13747
13752
|
"bytes": 99904
|
|
13748
13753
|
},
|
|
13749
|
-
"dist/HLSView-
|
|
13754
|
+
"dist/HLSView-EDTAEGGA.js": {
|
|
13750
13755
|
"imports": [
|
|
13751
13756
|
{
|
|
13752
|
-
"path": "dist/chunk-
|
|
13757
|
+
"path": "dist/chunk-6RJ75CE5.js",
|
|
13753
13758
|
"kind": "import-statement"
|
|
13754
13759
|
},
|
|
13755
13760
|
{
|
|
@@ -13927,7 +13932,7 @@
|
|
|
13927
13932
|
"default"
|
|
13928
13933
|
],
|
|
13929
13934
|
"entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
|
|
13930
|
-
"cssBundle": "dist/HLSView-
|
|
13935
|
+
"cssBundle": "dist/HLSView-4TKT4P7R.css",
|
|
13931
13936
|
"inputs": {
|
|
13932
13937
|
"src/Prebuilt/layouts/HLSView.jsx": {
|
|
13933
13938
|
"bytesInOutput": 25793
|
|
@@ -13986,13 +13991,13 @@
|
|
|
13986
13991
|
},
|
|
13987
13992
|
"bytes": 58515
|
|
13988
13993
|
},
|
|
13989
|
-
"dist/chunk-
|
|
13994
|
+
"dist/chunk-6RJ75CE5.js.map": {
|
|
13990
13995
|
"imports": [],
|
|
13991
13996
|
"exports": [],
|
|
13992
13997
|
"inputs": {},
|
|
13993
|
-
"bytes":
|
|
13998
|
+
"bytes": 3249438
|
|
13994
13999
|
},
|
|
13995
|
-
"dist/chunk-
|
|
14000
|
+
"dist/chunk-6RJ75CE5.js": {
|
|
13996
14001
|
"imports": [
|
|
13997
14002
|
{
|
|
13998
14003
|
"path": "react",
|
|
@@ -16470,7 +16475,7 @@
|
|
|
16470
16475
|
"external": true
|
|
16471
16476
|
},
|
|
16472
16477
|
{
|
|
16473
|
-
"path": "dist/HLSView-
|
|
16478
|
+
"path": "dist/HLSView-EDTAEGGA.js",
|
|
16474
16479
|
"kind": "dynamic-import"
|
|
16475
16480
|
},
|
|
16476
16481
|
{
|
|
@@ -16948,7 +16953,7 @@
|
|
|
16948
16953
|
],
|
|
16949
16954
|
"inputs": {
|
|
16950
16955
|
"<define:process.env>": {
|
|
16951
|
-
"bytesInOutput":
|
|
16956
|
+
"bytesInOutput": 17871
|
|
16952
16957
|
},
|
|
16953
16958
|
"../../node_modules/lodash/lodash.js": {
|
|
16954
16959
|
"bytesInOutput": 224301
|
|
@@ -17305,7 +17310,7 @@
|
|
|
17305
17310
|
"bytesInOutput": 606
|
|
17306
17311
|
},
|
|
17307
17312
|
"src/Prebuilt/common/hooks.ts": {
|
|
17308
|
-
"bytesInOutput":
|
|
17313
|
+
"bytesInOutput": 6357
|
|
17309
17314
|
},
|
|
17310
17315
|
"src/Prebuilt/components/Leave/LeaveRoom.tsx": {
|
|
17311
17316
|
"bytesInOutput": 2346
|
|
@@ -17332,7 +17337,7 @@
|
|
|
17332
17337
|
"bytesInOutput": 474
|
|
17333
17338
|
},
|
|
17334
17339
|
"src/Prebuilt/components/MoreSettings/SplitComponents/DesktopOptions.tsx": {
|
|
17335
|
-
"bytesInOutput":
|
|
17340
|
+
"bytesInOutput": 7090
|
|
17336
17341
|
},
|
|
17337
17342
|
"src/Prebuilt/components/PIP/index.jsx": {
|
|
17338
17343
|
"bytesInOutput": 178
|
|
@@ -17371,7 +17376,7 @@
|
|
|
17371
17376
|
"bytesInOutput": 989
|
|
17372
17377
|
},
|
|
17373
17378
|
"src/Prebuilt/components/MoreSettings/CaptionContent.tsx": {
|
|
17374
|
-
"bytesInOutput":
|
|
17379
|
+
"bytesInOutput": 4757
|
|
17375
17380
|
},
|
|
17376
17381
|
"src/Prebuilt/components/MoreSettings/FullScreenItem.tsx": {
|
|
17377
17382
|
"bytesInOutput": 628
|
|
@@ -17392,7 +17397,7 @@
|
|
|
17392
17397
|
"bytesInOutput": 1651
|
|
17393
17398
|
},
|
|
17394
17399
|
"src/Prebuilt/components/MoreSettings/SplitComponents/MwebOptions.tsx": {
|
|
17395
|
-
"bytesInOutput":
|
|
17400
|
+
"bytesInOutput": 10844
|
|
17396
17401
|
},
|
|
17397
17402
|
"src/Prebuilt/components/Header/StreamActions.tsx": {
|
|
17398
17403
|
"bytesInOutput": 9080
|
|
@@ -17790,7 +17795,7 @@
|
|
|
17790
17795
|
"src/Prebuilt/components/VideoLayouts/WhiteboardLayout.tsx": {
|
|
17791
17796
|
"bytesInOutput": 2656
|
|
17792
17797
|
},
|
|
17793
|
-
"../../../../../../../tmp/tmp-
|
|
17798
|
+
"../../../../../../../tmp/tmp-2882-2YUxhrGA2jsu/18fa993d4310/index.css": {
|
|
17794
17799
|
"bytesInOutput": 0
|
|
17795
17800
|
},
|
|
17796
17801
|
"src/Prebuilt/common/PeersSorter.ts": {
|
|
@@ -17929,7 +17934,7 @@
|
|
|
17929
17934
|
"bytesInOutput": 651
|
|
17930
17935
|
}
|
|
17931
17936
|
},
|
|
17932
|
-
"bytes":
|
|
17937
|
+
"bytes": 1301754
|
|
17933
17938
|
},
|
|
17934
17939
|
"dist/index.css.map": {
|
|
17935
17940
|
"imports": [],
|
|
@@ -17991,22 +17996,22 @@
|
|
|
17991
17996
|
}
|
|
17992
17997
|
],
|
|
17993
17998
|
"inputs": {
|
|
17994
|
-
"../../../../../../../tmp/tmp-
|
|
17999
|
+
"../../../../../../../tmp/tmp-2882-2YUxhrGA2jsu/18fa993d4a82/tldraw.css": {
|
|
17995
18000
|
"bytesInOutput": 75223
|
|
17996
18001
|
},
|
|
17997
|
-
"../../../../../../../tmp/tmp-
|
|
18002
|
+
"../../../../../../../tmp/tmp-2882-2YUxhrGA2jsu/18fa993d4310/index.css": {
|
|
17998
18003
|
"bytesInOutput": 401
|
|
17999
18004
|
}
|
|
18000
18005
|
},
|
|
18001
18006
|
"bytes": 75901
|
|
18002
18007
|
},
|
|
18003
|
-
"dist/HLSView-
|
|
18008
|
+
"dist/HLSView-4TKT4P7R.css.map": {
|
|
18004
18009
|
"imports": [],
|
|
18005
18010
|
"exports": [],
|
|
18006
18011
|
"inputs": {},
|
|
18007
18012
|
"bytes": 122402
|
|
18008
18013
|
},
|
|
18009
|
-
"dist/HLSView-
|
|
18014
|
+
"dist/HLSView-4TKT4P7R.css": {
|
|
18010
18015
|
"imports": [
|
|
18011
18016
|
{
|
|
18012
18017
|
"path": "https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap",
|
|
@@ -18060,10 +18065,10 @@
|
|
|
18060
18065
|
}
|
|
18061
18066
|
],
|
|
18062
18067
|
"inputs": {
|
|
18063
|
-
"../../../../../../../tmp/tmp-
|
|
18068
|
+
"../../../../../../../tmp/tmp-2882-2YUxhrGA2jsu/18fa993d4a82/tldraw.css": {
|
|
18064
18069
|
"bytesInOutput": 75223
|
|
18065
18070
|
},
|
|
18066
|
-
"../../../../../../../tmp/tmp-
|
|
18071
|
+
"../../../../../../../tmp/tmp-2882-2YUxhrGA2jsu/18fa993d4310/index.css": {
|
|
18067
18072
|
"bytesInOutput": 401
|
|
18068
18073
|
}
|
|
18069
18074
|
},
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"prebuilt",
|
|
11
11
|
"roomkit"
|
|
12
12
|
],
|
|
13
|
-
"version": "0.3.11-alpha.
|
|
13
|
+
"version": "0.3.11-alpha.6",
|
|
14
14
|
"author": "100ms",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"repository": {
|
|
@@ -74,12 +74,12 @@
|
|
|
74
74
|
"react": ">=17.0.2 <19.0.0"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@100mslive/hls-player": "0.3.11-alpha.
|
|
77
|
+
"@100mslive/hls-player": "0.3.11-alpha.6",
|
|
78
78
|
"@100mslive/hms-noise-cancellation": "0.0.1",
|
|
79
|
-
"@100mslive/hms-virtual-background": "1.13.11-alpha.
|
|
80
|
-
"@100mslive/hms-whiteboard": "0.0.1-alpha.
|
|
81
|
-
"@100mslive/react-icons": "0.10.11-alpha.
|
|
82
|
-
"@100mslive/react-sdk": "0.10.11-alpha.
|
|
79
|
+
"@100mslive/hms-virtual-background": "1.13.11-alpha.6",
|
|
80
|
+
"@100mslive/hms-whiteboard": "0.0.1-alpha.6",
|
|
81
|
+
"@100mslive/react-icons": "0.10.11-alpha.6",
|
|
82
|
+
"@100mslive/react-sdk": "0.10.11-alpha.6",
|
|
83
83
|
"@100mslive/types-prebuilt": "0.12.8",
|
|
84
84
|
"@emoji-mart/data": "^1.0.6",
|
|
85
85
|
"@emoji-mart/react": "^1.0.1",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"uuid": "^8.3.2",
|
|
116
116
|
"worker-timers": "^7.0.40"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "951030b3ea1ecbfba6a716713b329bb3a56b7653"
|
|
119
119
|
}
|
|
@@ -28,6 +28,8 @@ import { useRoomLayout } from '../provider/roomLayoutProvider';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import { useSetAppDataByKey } from '../components/AppData/useUISettings';
|
|
30
30
|
import { useRoomLayoutConferencingScreen } from '../provider/roomLayoutProvider/hooks/useRoomLayoutScreen';
|
|
31
|
+
// @ts-ignore: No implicit any
|
|
32
|
+
import { isScreenshareSupported } from '../common/utils';
|
|
31
33
|
import { APP_DATA, CHAT_SELECTOR, RTMP_RECORD_DEFAULT_RESOLUTION } from './constants';
|
|
32
34
|
/**
|
|
33
35
|
* Hook to execute a callback when alone in room(after a certain 5d of time)
|
|
@@ -232,9 +234,11 @@ export interface WaitingRoomInfo {
|
|
|
232
234
|
export function useWaitingRoomInfo(): WaitingRoomInfo {
|
|
233
235
|
const localPeerRole = useHMSStore(selectLocalPeerRole);
|
|
234
236
|
const { video, audio, screen } = useHMSStore(selectIsAllowedToPublish);
|
|
237
|
+
const isScreenShareAllowed = isScreenshareSupported();
|
|
235
238
|
const roles = useHMSStore(selectRolesMap);
|
|
236
239
|
const peersByRoles = useHMSStore(selectPeersByRoles(localPeerRole?.subscribeParams.subscribeToRoles || []));
|
|
237
|
-
|
|
240
|
+
// show no publish as screenshare in mweb is not possible
|
|
241
|
+
const isNotAllowedToPublish = !(video || audio || (screen && isScreenShareAllowed));
|
|
238
242
|
const isScreenOnlyPublishParams: boolean = screen && !(video || audio);
|
|
239
243
|
const hasSubscribedRolePublishing: boolean = useMemo(() => {
|
|
240
244
|
return peersByRoles.some((peer: HMSPeer) => {
|
|
@@ -38,7 +38,8 @@ export const CaptionContent = ({ isMobile, onExit }: { isMobile: boolean; onExit
|
|
|
38
38
|
</Text>
|
|
39
39
|
{!isMobile ? (
|
|
40
40
|
<Text variant="sm" css={{ color: '$on_surface_medium', pb: '$6', mb: '$8', '@md': { px: '$8', mt: '$4' } }}>
|
|
41
|
-
This will {isTranscriptionEnabled ? 'disable' : 'enable'} Closed Captions for everyone in this room. You
|
|
41
|
+
This will {isTranscriptionEnabled ? 'disable' : 'enable'} Closed Captions for everyone in this room. You
|
|
42
|
+
can
|
|
42
43
|
{isTranscriptionEnabled ? 'enable' : 'disable'} it later.
|
|
43
44
|
</Text>
|
|
44
45
|
) : null}
|
|
@@ -123,7 +124,8 @@ export const CaptionContent = ({ isMobile, onExit }: { isMobile: boolean; onExit
|
|
|
123
124
|
</Flex>
|
|
124
125
|
{isMobile && (
|
|
125
126
|
<Text variant="sm" css={{ color: '$on_surface_medium', pb: '$6', mb: '$8', '@md': { px: '$8', mt: '$4' } }}>
|
|
126
|
-
This will {isTranscriptionEnabled ? 'disable' : 'enable'} Closed Captions for everyone in this room. You
|
|
127
|
+
This will {isTranscriptionEnabled ? 'disable' : 'enable'} Closed Captions for everyone in this room. You
|
|
128
|
+
can
|
|
127
129
|
{isTranscriptionEnabled ? 'enable' : 'disable'} it later.
|
|
128
130
|
</Text>
|
|
129
131
|
)}
|
|
@@ -6,23 +6,9 @@ import {
|
|
|
6
6
|
HLSLiveStreamingScreen_Elements,
|
|
7
7
|
} from '@100mslive/types-prebuilt';
|
|
8
8
|
import { match } from 'ts-pattern';
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
selectLocalPeerID,
|
|
13
|
-
useHMSActions,
|
|
14
|
-
useHMSStore,
|
|
15
|
-
} from '@100mslive/react-sdk';
|
|
16
|
-
import {
|
|
17
|
-
BrbIcon,
|
|
18
|
-
CheckIcon,
|
|
19
|
-
HamburgerMenuIcon,
|
|
20
|
-
InfoIcon,
|
|
21
|
-
OpenCaptionIcon,
|
|
22
|
-
PipIcon,
|
|
23
|
-
SettingsIcon,
|
|
24
|
-
} from '@100mslive/react-icons';
|
|
25
|
-
import { Checkbox, Dropdown, Flex, Switch, Text, Tooltip } from '../../../..';
|
|
9
|
+
import { selectAppData, selectLocalPeerID, useHMSActions, useHMSStore } from '@100mslive/react-sdk';
|
|
10
|
+
import { BrbIcon, CheckIcon, HamburgerMenuIcon, InfoIcon, PipIcon, SettingsIcon } from '@100mslive/react-icons';
|
|
11
|
+
import { Checkbox, Dropdown, Flex, Text, Tooltip } from '../../../..';
|
|
26
12
|
import IconButton from '../../../IconButton';
|
|
27
13
|
// @ts-ignore: No implicit any
|
|
28
14
|
import { PIP } from '../../PIP';
|
|
@@ -75,7 +61,6 @@ export const DesktopOptions = ({
|
|
|
75
61
|
const { isBRBOn, toggleBRB } = useMyMetadata();
|
|
76
62
|
const isPipOn = PictureInPicture.isOn();
|
|
77
63
|
const isBRBEnabled = !!elements?.brb;
|
|
78
|
-
const isTranscriptionEnabled = useHMSStore(selectIsTranscriptionEnabled);
|
|
79
64
|
|
|
80
65
|
useDropdownList({ open: openModals.size > 0, name: 'MoreSettings' });
|
|
81
66
|
|
|
@@ -131,24 +116,6 @@ export const DesktopOptions = ({
|
|
|
131
116
|
</Flex>
|
|
132
117
|
</Dropdown.Item>
|
|
133
118
|
) : null}
|
|
134
|
-
|
|
135
|
-
<Dropdown.Item
|
|
136
|
-
data-testid="closed_caption_admin"
|
|
137
|
-
onClick={() => {
|
|
138
|
-
updateState(MODALS.CAPTION, true);
|
|
139
|
-
}}
|
|
140
|
-
>
|
|
141
|
-
<OpenCaptionIcon />
|
|
142
|
-
<Flex direction="column" css={{ flexGrow: '1' }}>
|
|
143
|
-
<Text variant="sm" css={{ ml: '$4', color: '$on_surface_high' }}>
|
|
144
|
-
Closed Captions
|
|
145
|
-
</Text>
|
|
146
|
-
<Text variant="caption" css={{ ml: '$4', color: '$on_surface_medium' }}>
|
|
147
|
-
{isTranscriptionEnabled ? 'Enabled' : 'Disabled'}
|
|
148
|
-
</Text>
|
|
149
|
-
</Flex>
|
|
150
|
-
<Switch id="closed_caption_start_stop" checked={isTranscriptionEnabled} disabled={false} />
|
|
151
|
-
</Dropdown.Item>
|
|
152
119
|
{screenType !== 'hls_live_streaming' ? (
|
|
153
120
|
<Dropdown.Item css={{ p: 0, '&:empty': { display: 'none' } }}>
|
|
154
121
|
<PIP
|
|
@@ -5,7 +5,6 @@ import { match } from 'ts-pattern';
|
|
|
5
5
|
import {
|
|
6
6
|
selectIsConnectedToRoom,
|
|
7
7
|
selectIsLocalVideoEnabled,
|
|
8
|
-
selectIsTranscriptionEnabled,
|
|
9
8
|
selectPeerCount,
|
|
10
9
|
selectPermissions,
|
|
11
10
|
useHMSActions,
|
|
@@ -14,14 +13,12 @@ import {
|
|
|
14
13
|
} from '@100mslive/react-sdk';
|
|
15
14
|
import {
|
|
16
15
|
BrbIcon,
|
|
17
|
-
ClosedCaptionIcon,
|
|
18
16
|
CrossIcon,
|
|
19
17
|
EmojiIcon,
|
|
20
18
|
HamburgerMenuIcon,
|
|
21
19
|
HandIcon,
|
|
22
20
|
HandRaiseSlashedIcon,
|
|
23
21
|
InfoIcon,
|
|
24
|
-
OpenCaptionIcon,
|
|
25
22
|
PeopleIcon,
|
|
26
23
|
QuizActiveIcon,
|
|
27
24
|
QuizIcon,
|
|
@@ -53,7 +50,7 @@ import { useSheetToggle } from '../../AppData/useSheet';
|
|
|
53
50
|
// @ts-ignore: No implicit any
|
|
54
51
|
import { usePollViewToggle, useSidepaneToggle } from '../../AppData/useSidepane';
|
|
55
52
|
// @ts-ignore: No implicit Any
|
|
56
|
-
import {
|
|
53
|
+
import { useShowPolls } from '../../AppData/useUISettings';
|
|
57
54
|
// @ts-ignore: No implicit any
|
|
58
55
|
import { useDropdownList } from '../../hooks/useDropdownList';
|
|
59
56
|
import { useMyMetadata } from '../../hooks/useMetadata';
|
|
@@ -108,9 +105,6 @@ export const MwebOptions = ({
|
|
|
108
105
|
const isLocalVideoEnabled = useHMSStore(selectIsLocalVideoEnabled);
|
|
109
106
|
const { startRecording, isRecordingLoading } = useRecordingHandler();
|
|
110
107
|
|
|
111
|
-
const isTranscriptionEnabled = useHMSStore(selectIsTranscriptionEnabled);
|
|
112
|
-
|
|
113
|
-
const [isCaptionEnabled] = useSetIsCaptionEnabled();
|
|
114
108
|
useDropdownList({ open: openModals.size > 0 || openOptionsSheet || openSettingsSheet, name: 'MoreSettings' });
|
|
115
109
|
|
|
116
110
|
const updateState = (modalName: string, value: boolean) => {
|
|
@@ -195,15 +189,6 @@ export const MwebOptions = ({
|
|
|
195
189
|
<ActionTile.Title>{isHandRaised ? 'Lower' : 'Raise'} Hand</ActionTile.Title>
|
|
196
190
|
</ActionTile.Root>
|
|
197
191
|
) : null}
|
|
198
|
-
<ActionTile.Root
|
|
199
|
-
onClick={() => {
|
|
200
|
-
setOpenOptionsSheet(false);
|
|
201
|
-
updateState(MODALS.CAPTION, true);
|
|
202
|
-
}}
|
|
203
|
-
>
|
|
204
|
-
{isTranscriptionEnabled && isCaptionEnabled ? <ClosedCaptionIcon /> : <OpenCaptionIcon />}
|
|
205
|
-
<ActionTile.Title>Closed Caption</ActionTile.Title>
|
|
206
|
-
</ActionTile.Root>
|
|
207
192
|
{isLocalVideoEnabled && !!elements?.virtual_background ? (
|
|
208
193
|
<ActionTile.Root
|
|
209
194
|
onClick={() => {
|
|
File without changes
|