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
- Unity Cloud icon does not appear next to project and does not connect correctly when the project is created with Cloud but closed right after creation
- ScrollerSlider in the Scroller Control is still using UXMLTraits
- Crash on ExtractHandles when shutting down the Editor in a specific scene while Burst jobs are in progress
- Unity Hub closes with no "Project is currently open" window when selecting an already open project from the Projects list
- The Hub freezes indefinitely when copy/pasting a lot of characters in the “Set project display name” Hub window since it has no character limit
This is a duplicate of issue #1283191