@100mslive/roomkit-react 0.3.1 → 0.3.2-alpha.1

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.
Files changed (29) hide show
  1. package/dist/{HLSView-7WNDXOED.js → HLSView-7E6TK45Q.js} +13 -3
  2. package/dist/HLSView-7E6TK45Q.js.map +7 -0
  3. package/dist/Prebuilt/common/hooks.d.ts +2 -0
  4. package/dist/Prebuilt/components/Footer/ParticipantList.d.ts +2 -1
  5. package/dist/Prebuilt/components/Footer/RoleAccordion.d.ts +1 -0
  6. package/dist/Prebuilt/components/hooks/useGroupOnStageActions.d.ts +10 -0
  7. package/dist/Prebuilt/components/hooks/usePeerOnStageActions.d.ts +14 -0
  8. package/dist/{chunk-3OCZREZ3.js → chunk-FKNIYFKS.js} +697 -552
  9. package/dist/chunk-FKNIYFKS.js.map +7 -0
  10. package/dist/index.cjs.js +1910 -1745
  11. package/dist/index.cjs.js.map +4 -4
  12. package/dist/index.js +1 -1
  13. package/dist/meta.cjs.json +152 -29
  14. package/dist/meta.esbuild.json +160 -36
  15. package/package.json +6 -6
  16. package/src/Prebuilt/common/hooks.ts +27 -1
  17. package/src/Prebuilt/components/Chat/PinnedMessage.tsx +4 -3
  18. package/src/Prebuilt/components/Footer/ParticipantList.tsx +90 -66
  19. package/src/Prebuilt/components/Footer/RoleAccordion.tsx +20 -1
  20. package/src/Prebuilt/components/MwebLandscapePrompt.tsx +1 -1
  21. package/src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx +1 -1
  22. package/src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx +1 -1
  23. package/src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx +1 -1
  24. package/src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx +2 -0
  25. package/src/Prebuilt/components/hooks/useGroupOnStageActions.tsx +54 -0
  26. package/src/Prebuilt/components/hooks/usePeerOnStageActions.tsx +49 -0
  27. package/src/Prebuilt/layouts/HLSView.jsx +10 -1
  28. package/dist/HLSView-7WNDXOED.js.map +0 -7
  29. package/dist/chunk-3OCZREZ3.js.map +0 -7
@@ -2967,7 +2967,7 @@
2967
2967
  "format": "esm"
2968
2968
  },
2969
2969
  "src/Prebuilt/common/hooks.ts": {
2970
- "bytes": 4502,
2970
+ "bytes": 5233,
2971
2971
  "imports": [
2972
2972
  {
2973
2973
  "path": "react",
@@ -2979,6 +2979,11 @@
2979
2979
  "kind": "import-statement",
2980
2980
  "external": true
2981
2981
  },
2982
+ {
2983
+ "path": "@100mslive/hls-player",
2984
+ "kind": "import-statement",
2985
+ "external": true
2986
+ },
2982
2987
  {
2983
2988
  "path": "@100mslive/types-prebuilt/elements/join_form",
2984
2989
  "kind": "import-statement",
@@ -3013,6 +3018,11 @@
3013
3018
  "path": "<define:process.env>",
3014
3019
  "kind": "import-statement",
3015
3020
  "external": true
3021
+ },
3022
+ {
3023
+ "path": "<runtime>",
3024
+ "kind": "import-statement",
3025
+ "external": true
3016
3026
  }
3017
3027
  ],
3018
3028
  "format": "esm"
@@ -4681,7 +4691,7 @@
4681
4691
  "format": "cjs"
4682
4692
  },
4683
4693
  "../hms-video-store/dist/index.js": {
4684
- "bytes": 325880,
4694
+ "bytes": 326171,
4685
4695
  "imports": [
4686
4696
  {
4687
4697
  "path": "../../node_modules/reselect/es/index.js",
@@ -6000,8 +6010,39 @@
6000
6010
  ],
6001
6011
  "format": "esm"
6002
6012
  },
6013
+ "src/Prebuilt/components/hooks/useGroupOnStageActions.tsx": {
6014
+ "bytes": 1795,
6015
+ "imports": [
6016
+ {
6017
+ "path": "ts-pattern",
6018
+ "kind": "import-statement",
6019
+ "external": true
6020
+ },
6021
+ {
6022
+ "path": "@100mslive/react-sdk",
6023
+ "kind": "import-statement",
6024
+ "external": true
6025
+ },
6026
+ {
6027
+ "path": "src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts",
6028
+ "kind": "import-statement",
6029
+ "original": "../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen"
6030
+ },
6031
+ {
6032
+ "path": "<define:process.env>",
6033
+ "kind": "import-statement",
6034
+ "external": true
6035
+ },
6036
+ {
6037
+ "path": "<runtime>",
6038
+ "kind": "import-statement",
6039
+ "external": true
6040
+ }
6041
+ ],
6042
+ "format": "esm"
6043
+ },
6003
6044
  "src/Prebuilt/components/Footer/RoleAccordion.tsx": {
6004
- "bytes": 4692,
6045
+ "bytes": 5566,
6005
6046
  "imports": [
6006
6047
  {
6007
6048
  "path": "react",
@@ -6033,6 +6074,16 @@
6033
6074
  "kind": "import-statement",
6034
6075
  "original": "../../../Accordion"
6035
6076
  },
6077
+ {
6078
+ "path": "src/Button/index.tsx",
6079
+ "kind": "import-statement",
6080
+ "original": "../../../Button"
6081
+ },
6082
+ {
6083
+ "path": "src/Divider/index.ts",
6084
+ "kind": "import-statement",
6085
+ "original": "../../../Divider"
6086
+ },
6036
6087
  {
6037
6088
  "path": "src/Layout/index.tsx",
6038
6089
  "kind": "import-statement",
@@ -6053,6 +6104,11 @@
6053
6104
  "kind": "import-statement",
6054
6105
  "original": "./RoleOptions"
6055
6106
  },
6107
+ {
6108
+ "path": "src/Prebuilt/components/hooks/useGroupOnStageActions.tsx",
6109
+ "kind": "import-statement",
6110
+ "original": "../hooks/useGroupOnStageActions"
6111
+ },
6056
6112
  {
6057
6113
  "path": "src/Prebuilt/common/utils.js",
6058
6114
  "kind": "import-statement",
@@ -6066,8 +6122,39 @@
6066
6122
  ],
6067
6123
  "format": "esm"
6068
6124
  },
6125
+ "src/Prebuilt/components/hooks/usePeerOnStageActions.tsx": {
6126
+ "bytes": 1672,
6127
+ "imports": [
6128
+ {
6129
+ "path": "react",
6130
+ "kind": "import-statement",
6131
+ "external": true
6132
+ },
6133
+ {
6134
+ "path": "@100mslive/react-sdk",
6135
+ "kind": "import-statement",
6136
+ "external": true
6137
+ },
6138
+ {
6139
+ "path": "src/Prebuilt/provider/roomLayoutProvider/hooks/useRoomLayoutScreen.ts",
6140
+ "kind": "import-statement",
6141
+ "original": "../../provider/roomLayoutProvider/hooks/useRoomLayoutScreen"
6142
+ },
6143
+ {
6144
+ "path": "<define:process.env>",
6145
+ "kind": "import-statement",
6146
+ "external": true
6147
+ },
6148
+ {
6149
+ "path": "<runtime>",
6150
+ "kind": "import-statement",
6151
+ "external": true
6152
+ }
6153
+ ],
6154
+ "format": "esm"
6155
+ },
6069
6156
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
6070
- "bytes": 12119,
6157
+ "bytes": 12623,
6071
6158
  "imports": [
6072
6159
  {
6073
6160
  "path": "react",
@@ -6094,6 +6181,11 @@
6094
6181
  "kind": "import-statement",
6095
6182
  "original": "../../.."
6096
6183
  },
6184
+ {
6185
+ "path": "src/IconButton/index.tsx",
6186
+ "kind": "import-statement",
6187
+ "original": "../../../IconButton"
6188
+ },
6097
6189
  {
6098
6190
  "path": "src/Prebuilt/IconButton.tsx",
6099
6191
  "kind": "import-statement",
@@ -6124,6 +6216,11 @@
6124
6216
  "kind": "import-statement",
6125
6217
  "original": "../AppData/useSidepane"
6126
6218
  },
6219
+ {
6220
+ "path": "src/Prebuilt/components/hooks/usePeerOnStageActions.tsx",
6221
+ "kind": "import-statement",
6222
+ "original": "../hooks/usePeerOnStageActions"
6223
+ },
6127
6224
  {
6128
6225
  "path": "src/Prebuilt/common/hooks.ts",
6129
6226
  "kind": "import-statement",
@@ -6495,7 +6592,7 @@
6495
6592
  "format": "esm"
6496
6593
  },
6497
6594
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
6498
- "bytes": 8005,
6595
+ "bytes": 8017,
6499
6596
  "imports": [
6500
6597
  {
6501
6598
  "path": "react",
@@ -6623,7 +6720,7 @@
6623
6720
  "format": "esm"
6624
6721
  },
6625
6722
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
6626
- "bytes": 1029,
6723
+ "bytes": 1041,
6627
6724
  "imports": [
6628
6725
  {
6629
6726
  "path": "react",
@@ -6788,7 +6885,7 @@
6788
6885
  "format": "esm"
6789
6886
  },
6790
6887
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
6791
- "bytes": 10090,
6888
+ "bytes": 10102,
6792
6889
  "imports": [
6793
6890
  {
6794
6891
  "path": "react",
@@ -8365,7 +8462,7 @@
8365
8462
  "format": "esm"
8366
8463
  },
8367
8464
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
8368
- "bytes": 5026,
8465
+ "bytes": 5099,
8369
8466
  "imports": [
8370
8467
  {
8371
8468
  "path": "react",
@@ -10431,7 +10528,7 @@
10431
10528
  "format": "esm"
10432
10529
  },
10433
10530
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
10434
- "bytes": 3065,
10531
+ "bytes": 3118,
10435
10532
  "imports": [
10436
10533
  {
10437
10534
  "path": "react",
@@ -11320,7 +11417,7 @@
11320
11417
  "format": "esm"
11321
11418
  },
11322
11419
  "src/Prebuilt/layouts/HLSView.jsx": {
11323
- "bytes": 26749,
11420
+ "bytes": 27068,
11324
11421
  "imports": [
11325
11422
  {
11326
11423
  "path": "react",
@@ -12190,7 +12287,7 @@
12190
12287
  "format": "esm"
12191
12288
  },
12192
12289
  "src/Prebuilt/components/MwebLandscapePrompt.tsx": {
12193
- "bytes": 3089,
12290
+ "bytes": 3095,
12194
12291
  "imports": [
12195
12292
  {
12196
12293
  "path": "react",
@@ -13617,7 +13714,7 @@
13617
13714
  "dist/index.js": {
13618
13715
  "imports": [
13619
13716
  {
13620
- "path": "dist/chunk-3OCZREZ3.js",
13717
+ "path": "dist/chunk-FKNIYFKS.js",
13621
13718
  "kind": "import-statement"
13622
13719
  }
13623
13720
  ],
@@ -13690,16 +13787,16 @@
13690
13787
  "inputs": {},
13691
13788
  "bytes": 1822
13692
13789
  },
13693
- "dist/HLSView-7WNDXOED.js.map": {
13790
+ "dist/HLSView-7E6TK45Q.js.map": {
13694
13791
  "imports": [],
13695
13792
  "exports": [],
13696
13793
  "inputs": {},
13697
- "bytes": 89215
13794
+ "bytes": 89757
13698
13795
  },
13699
- "dist/HLSView-7WNDXOED.js": {
13796
+ "dist/HLSView-7E6TK45Q.js": {
13700
13797
  "imports": [
13701
13798
  {
13702
- "path": "dist/chunk-3OCZREZ3.js",
13799
+ "path": "dist/chunk-FKNIYFKS.js",
13703
13800
  "kind": "import-statement"
13704
13801
  },
13705
13802
  {
@@ -13864,7 +13961,7 @@
13864
13961
  "entryPoint": "src/Prebuilt/layouts/HLSView.jsx",
13865
13962
  "inputs": {
13866
13963
  "src/Prebuilt/layouts/HLSView.jsx": {
13867
- "bytesInOutput": 25580
13964
+ "bytesInOutput": 25976
13868
13965
  },
13869
13966
  "src/Prebuilt/components/HlsStatsOverlay.jsx": {
13870
13967
  "bytesInOutput": 3521
@@ -13915,15 +14012,15 @@
13915
14012
  "bytesInOutput": 2101
13916
14013
  }
13917
14014
  },
13918
- "bytes": 54624
14015
+ "bytes": 55042
13919
14016
  },
13920
- "dist/chunk-3OCZREZ3.js.map": {
14017
+ "dist/chunk-FKNIYFKS.js.map": {
13921
14018
  "imports": [],
13922
14019
  "exports": [],
13923
14020
  "inputs": {},
13924
- "bytes": 3169011
14021
+ "bytes": 3179358
13925
14022
  },
13926
- "dist/chunk-3OCZREZ3.js": {
14023
+ "dist/chunk-FKNIYFKS.js": {
13927
14024
  "imports": [
13928
14025
  {
13929
14026
  "path": "react",
@@ -15190,6 +15287,26 @@
15190
15287
  "kind": "import-statement",
15191
15288
  "external": true
15192
15289
  },
15290
+ {
15291
+ "path": "ts-pattern",
15292
+ "kind": "import-statement",
15293
+ "external": true
15294
+ },
15295
+ {
15296
+ "path": "@100mslive/react-sdk",
15297
+ "kind": "import-statement",
15298
+ "external": true
15299
+ },
15300
+ {
15301
+ "path": "react",
15302
+ "kind": "import-statement",
15303
+ "external": true
15304
+ },
15305
+ {
15306
+ "path": "@100mslive/react-sdk",
15307
+ "kind": "import-statement",
15308
+ "external": true
15309
+ },
15193
15310
  {
15194
15311
  "path": "react",
15195
15312
  "kind": "import-statement",
@@ -16291,7 +16408,7 @@
16291
16408
  "external": true
16292
16409
  },
16293
16410
  {
16294
- "path": "dist/HLSView-7WNDXOED.js",
16411
+ "path": "dist/HLSView-7E6TK45Q.js",
16295
16412
  "kind": "dynamic-import"
16296
16413
  },
16297
16414
  {
@@ -16758,6 +16875,7 @@
16758
16875
  "useBorderAudioLevel",
16759
16876
  "useIsLandscape",
16760
16877
  "useIsSidepaneTypeOpen",
16878
+ "useKeyboardHandler",
16761
16879
  "useRoomLayoutConferencingScreen",
16762
16880
  "useRoomLayoutHeader",
16763
16881
  "useSidepaneToggle",
@@ -16765,7 +16883,7 @@
16765
16883
  ],
16766
16884
  "inputs": {
16767
16885
  "<define:process.env>": {
16768
- "bytesInOutput": 18211
16886
+ "bytesInOutput": 18254
16769
16887
  },
16770
16888
  "../../node_modules/lodash/lodash.js": {
16771
16889
  "bytesInOutput": 224291
@@ -17116,7 +17234,7 @@
17116
17234
  "bytesInOutput": 606
17117
17235
  },
17118
17236
  "src/Prebuilt/common/hooks.ts": {
17119
- "bytesInOutput": 3290
17237
+ "bytesInOutput": 4136
17120
17238
  },
17121
17239
  "src/Prebuilt/components/Leave/LeaveRoom.tsx": {
17122
17240
  "bytesInOutput": 2454
@@ -17167,7 +17285,7 @@
17167
17285
  "bytesInOutput": 4547
17168
17286
  },
17169
17287
  "src/Prebuilt/components/Streaming/ResolutionInput.jsx": {
17170
- "bytesInOutput": 2940
17288
+ "bytesInOutput": 2942
17171
17289
  },
17172
17290
  "src/Prebuilt/primitives/DialogContent.jsx": {
17173
17291
  "bytesInOutput": 7700
@@ -17203,7 +17321,7 @@
17203
17321
  "bytesInOutput": 10031
17204
17322
  },
17205
17323
  "../hms-video-store/dist/index.js": {
17206
- "bytesInOutput": 48556
17324
+ "bytesInOutput": 48564
17207
17325
  },
17208
17326
  "../../node_modules/reselect/es/index.js": {
17209
17327
  "bytesInOutput": 2539
@@ -17305,7 +17423,7 @@
17305
17423
  "bytesInOutput": 1404
17306
17424
  },
17307
17425
  "src/Prebuilt/components/Footer/ParticipantList.tsx": {
17308
- "bytesInOutput": 11538
17426
+ "bytesInOutput": 11800
17309
17427
  },
17310
17428
  "src/Prebuilt/components/Connection/ConnectionIndicator.tsx": {
17311
17429
  "bytesInOutput": 3749
@@ -17317,11 +17435,17 @@
17317
17435
  "bytesInOutput": 1290
17318
17436
  },
17319
17437
  "src/Prebuilt/components/Footer/RoleAccordion.tsx": {
17320
- "bytesInOutput": 4229
17438
+ "bytesInOutput": 4964
17321
17439
  },
17322
17440
  "src/Prebuilt/components/Footer/RoleOptions.tsx": {
17323
17441
  "bytesInOutput": 7326
17324
17442
  },
17443
+ "src/Prebuilt/components/hooks/useGroupOnStageActions.tsx": {
17444
+ "bytesInOutput": 1801
17445
+ },
17446
+ "src/Prebuilt/components/hooks/usePeerOnStageActions.tsx": {
17447
+ "bytesInOutput": 1806
17448
+ },
17325
17449
  "src/Prebuilt/components/Footer/PollsToggle.tsx": {
17326
17450
  "bytesInOutput": 1073
17327
17451
  },
@@ -17338,13 +17462,13 @@
17338
17462
  "bytesInOutput": 9637
17339
17463
  },
17340
17464
  "src/Prebuilt/layouts/SidePane.tsx": {
17341
- "bytesInOutput": 6271
17465
+ "bytesInOutput": 6274
17342
17466
  },
17343
17467
  "src/Prebuilt/components/Polls/Polls.tsx": {
17344
17468
  "bytesInOutput": 735
17345
17469
  },
17346
17470
  "src/Prebuilt/components/Polls/CreatePollQuiz/PollsQuizMenu.tsx": {
17347
- "bytesInOutput": 7987
17471
+ "bytesInOutput": 7999
17348
17472
  },
17349
17473
  "src/Prebuilt/components/Streaming/Common.jsx": {
17350
17474
  "bytesInOutput": 2247
@@ -17356,7 +17480,7 @@
17356
17480
  "bytesInOutput": 5110
17357
17481
  },
17358
17482
  "src/Prebuilt/components/Polls/CreateQuestions/QuestionForm.tsx": {
17359
- "bytesInOutput": 8169
17483
+ "bytesInOutput": 8181
17360
17484
  },
17361
17485
  "src/Prebuilt/components/Polls/CreateQuestions/DeleteQuestionModal.tsx": {
17362
17486
  "bytesInOutput": 2083
@@ -17368,7 +17492,7 @@
17368
17492
  "bytesInOutput": 3664
17369
17493
  },
17370
17494
  "src/Prebuilt/components/Polls/common/OptionInputWithDelete.tsx": {
17371
- "bytesInOutput": 888
17495
+ "bytesInOutput": 900
17372
17496
  },
17373
17497
  "src/Prebuilt/components/Polls/common/VoteCount.tsx": {
17374
17498
  "bytesInOutput": 361
@@ -17473,7 +17597,7 @@
17473
17597
  "bytesInOutput": 2916
17474
17598
  },
17475
17599
  "src/Prebuilt/components/Chat/PinnedMessage.tsx": {
17476
- "bytesInOutput": 4944
17600
+ "bytesInOutput": 5076
17477
17601
  },
17478
17602
  "src/Prebuilt/components/Chat/ArrowNavigation.tsx": {
17479
17603
  "bytesInOutput": 1021
@@ -17569,7 +17693,7 @@
17569
17693
  "bytesInOutput": 1046
17570
17694
  },
17571
17695
  "src/Prebuilt/components/VideoLayouts/ScreenshareLayout.tsx": {
17572
- "bytesInOutput": 2664
17696
+ "bytesInOutput": 2716
17573
17697
  },
17574
17698
  "src/Prebuilt/components/ScreenshareTile.tsx": {
17575
17699
  "bytesInOutput": 4447
@@ -17635,7 +17759,7 @@
17635
17759
  "bytesInOutput": 491
17636
17760
  },
17637
17761
  "src/Prebuilt/components/MwebLandscapePrompt.tsx": {
17638
- "bytesInOutput": 2922
17762
+ "bytesInOutput": 2928
17639
17763
  },
17640
17764
  "src/Prebuilt/components/Notifications/index.tsx": {
17641
17765
  "bytesInOutput": 27
@@ -17719,7 +17843,7 @@
17719
17843
  "bytesInOutput": 651
17720
17844
  }
17721
17845
  },
17722
- "bytes": 1298852
17846
+ "bytes": 1304727
17723
17847
  }
17724
17848
  }
17725
17849
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.1",
13
+ "version": "0.3.2-alpha.1",
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.3.1",
85
+ "@100mslive/hls-player": "0.3.2-alpha.1",
86
86
  "@100mslive/hms-noise-cancellation": "0.0.0-alpha.1",
87
- "@100mslive/hms-virtual-background": "1.13.1",
88
- "@100mslive/react-icons": "0.10.1",
89
- "@100mslive/react-sdk": "0.10.1",
87
+ "@100mslive/hms-virtual-background": "1.13.2-alpha.1",
88
+ "@100mslive/react-icons": "0.10.2-alpha.1",
89
+ "@100mslive/react-sdk": "0.10.2-alpha.1",
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": "fff51f4e055e089629a9320b0cb6e79e0245180c"
125
+ "gitHead": "af75fd7e54f66e08bd8554488847d576c7545a42"
126
126
  }
@@ -1,5 +1,6 @@
1
- import { useEffect, useRef, useState } from 'react';
1
+ import { useCallback, useEffect, useRef, useState } from 'react';
2
2
  import { useMedia } from 'react-use';
3
+ import { HMSHLSPlayer } from '@100mslive/hls-player';
3
4
  import { JoinForm_JoinBtnType } from '@100mslive/types-prebuilt/elements/join_form';
4
5
  import {
5
6
  parsedUserAgent,
@@ -121,3 +122,28 @@ export const useMobileHLSStream = () => {
121
122
  const { screenType } = useRoomLayoutConferencingScreen();
122
123
  return isMobile && screenType === 'hls_live_streaming';
123
124
  };
125
+
126
+ export const useKeyboardHandler = (isPaused: boolean, hlsPlayer: HMSHLSPlayer) => {
127
+ const handleKeyEvent = useCallback(
128
+ async (event: KeyboardEvent) => {
129
+ switch (event.key) {
130
+ case ' ':
131
+ if (isPaused) {
132
+ await hlsPlayer?.play();
133
+ } else {
134
+ hlsPlayer?.pause();
135
+ }
136
+ break;
137
+ case 'ArrowRight':
138
+ hlsPlayer?.seekTo(hlsPlayer?.getVideoElement().currentTime + 10);
139
+ break;
140
+ case 'ArrowLeft':
141
+ hlsPlayer?.seekTo(hlsPlayer?.getVideoElement().currentTime - 10);
142
+ break;
143
+ }
144
+ },
145
+ [hlsPlayer, isPaused],
146
+ );
147
+
148
+ return handleKeyEvent;
149
+ };
@@ -71,13 +71,14 @@ export const PinnedMessage = () => {
71
71
  <Flex
72
72
  css={{
73
73
  p: '$4',
74
- color: '$on_surface_medium',
75
- bg: isMobile ? 'rgba(0, 0, 0, 0.64)' : '$surface_default',
74
+ color: '$on_surface_high',
75
+ bg: isMobile && elements?.chat?.is_overlay ? 'rgba(0, 0, 0, 0.64)' : '$surface_brighter',
76
76
  r: '$1',
77
77
  gap: '$4',
78
78
  mb: '$8',
79
79
  mt: '$8',
80
80
  flexGrow: 1,
81
+ border: '1px solid $border_bright',
81
82
  }}
82
83
  align="center"
83
84
  justify="between"
@@ -98,7 +99,7 @@ export const PinnedMessage = () => {
98
99
  >
99
100
  <Text
100
101
  variant="sm"
101
- css={{ color: '$on_surface_medium' }}
102
+ css={{ color: '$on_surface_high' }}
102
103
  {...swipeHandlers}
103
104
  title={pinnedMessages[pinnedMessageIndex]?.text}
104
105
  >