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
- Game View Tab Scale changes erratically when a Unity Tab is on a different screen with a differing Display Scale
- Six way lighting receiving wrong lighting from APV when set to World Space
- Crash on SortByExecutionOrder when interrupting the .androidpack import process
- ShaderGraph tab header changes the icon to the VFX Graph icon when ShaderGraph and VFX Graph with the same name are both opened
- The Build Profiles window has usability issues when the panel takes up less than 30% of the screen width
This is a duplicate of issue #1283191