Search Issue Tracker
Duplicate
Votes
1
Found in
2021.2
2021.2.13f1
2022.1
2022.2
Issue ID
1406834
Regression
No
[WebGL] [iOS] WebCamTexture.devices always returns 1 device
How to reproduce:
1. Open the attached project ("1406834_20212.zip")
2. Build and deploy the WebGL project
3. In a browser visit the URL/IP of the web server the project was deployed with
4. Observe the quad and/or the JavaScript Console
Expected result: Back camera is rendered on the quad, WebCamTexture.devices returns the number of the cameras the device has
Actual result: Front camera is used as a fallback and rendered on the quad, WebCamTexture.devices returns 1 camera
Reproducible with: 2021.2.14f1, 2022.1.0b10, 2022.2.0a7
Could not test with: 2019.4.36f1, 2020.3.30f1 (does not ask for camera permissions)
Reproducible on:
iPhone 13 mini (iOS 15)
iPad 6th generation (iOS 14.4.2)
Not reproducible on:
VLNQA00264, Samsung Galaxy S10+ (SM-G975F), Android 10, CPU: NOT FOUND, GPU: Mali-G76
Note:
- Not reproducible with iOS Platform
- Tested on mobile Safari/Chrome
- WebCamTexture.devices.Length is logged in the JS Console (accessible through chrome://inspect or by connecting to the mobile device via network on desktop Safari (Develop -> "Name of device" -> "IP of device")
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- There is no “Overwrite Preset?” popup when saving a Customizable Toolbar preset with a name that already exists
- Customizable Toolbar preset does not switch to the Unity Default Preset when Reverting All Saved Presets or deleting the active Preset
- New Hierarchy visibility and pickability icon behavior differs from documentation
- [Usability] Selected node gets unselected when undoing changes in the Graph Inspector Node Settings tab
- Search Default option for Column Format does not reset the column's format
This is a duplicate of issue #1283191