Commit f6b6cd2
authored
fix(pronto): use list visualType for device selection mobile devices (#2202)
### 💡 Overview
Use list visualType for device selectors on mobile devices. The preview
mode renders a live media stream per device, which is not reliably
supported on mobile browsers.
### 📝 Implementation notes
🎫 Ticket:
https://linear.app/stream/issue/REACT-940/device-preview-for-audio-and-video-devices
📑 Docs: GetStream/docs-content#1195
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Video device selector now automatically adapts its display layout
based on device type (list view on mobile, preview view on desktop) for
improved reliability and usability across different platforms.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 704681a commit f6b6cd2
File tree
4 files changed
+15
-2
lines changed- packages/react-sdk/src/components/DeviceSettings
- sample-apps/react/react-dogfood
- components
- helpers
4 files changed
+15
-2
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | | - | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments