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
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
- InvalidOperationException when using Game Camera Preview in Scene window with a custom RenderGraph pass
This is a duplicate of issue #1283191