You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scanHardware() doesn't work for Camera with Android devices. Camera.names array not update.
So there is no way to connect/disconnect USB cameras in run-time. Camera.names returns correct data only after application restart.
Tested with multiple AIR versions, even with latest AIR 33.1.1.889 with multiple different Android devices with different OS versions with different USB cameras.
Same problem in all cases.
It works fine with non-AIR applications. For example in Chrome browser.
There is no such issue with Windows devices.
There is related issue with macOS devices: #1992
Didn't check the same for microphones.
Steps to Reproduce
Launch code below with any Android device with connected USB cameras. Better to use Android TV Box to reproduce this issue.
Click anywhere on stage, in Scout you will see trace with camera name (0): cameras: 0
Unplug USB camera.
Click anywhere on stage one more time. It will call scanHardware() and output Camera.names once again.
Problem Description
scanHardware()
doesn't work forCamera
with Android devices.Camera.names
array not update.So there is no way to connect/disconnect USB cameras in run-time.
Camera.names
returns correct data only after application restart.Tested with multiple AIR versions, even with latest AIR 33.1.1.889 with multiple different Android devices with different OS versions with different USB cameras.
Same problem in all cases.
It works fine with non-AIR applications. For example in Chrome browser.
There is no such issue with Windows devices.
There is related issue with macOS devices: #1992
Didn't check the same for microphones.
Steps to Reproduce
cameras: 0
scanHardware()
and outputCamera.names
once again.Application example with sources attached.
android_camera_scanhardware_bug.zip
Actual Result:
In Scout you will see trace with unplugged camera:
cameras: 0
Expected Result:
In Scout you will see trace without unplugged camera:
cameras:
Known Workarounds
none
May be write own native extension for camera usage.
The text was updated successfully, but these errors were encountered: