Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request][Windows][macOS][Linux][Android] Camera changes event #2006

Open
itlancer opened this issue Jul 3, 2022 · 0 comments
Open
Labels

Comments

@itlancer
Copy link

itlancer commented Jul 3, 2022

Feature Description

AIR should have event to handle connection/disconnection USB cameras. It should be fired when some USB camera plugged in or unplugged.
Without it very hard to implement smooth UX for application that could use multiple cameras or need to handle camera reconnection.
Event should have property with related Camera object which plugged in or unplugged.

Related issues:
#2005
#1993
#1992
#1895

Known Workarounds

none
*1) Write own native extension to handle it.
https://developer.android.com/reference/android/hardware/camera2/CameraManager.AvailabilityCallback#onCameraAvailable(java.lang.String)
https://developer.android.com/reference/android/hardware/camera2/CameraManager.AvailabilityCallback#onCameraUnavailable(java.lang.String)
https://developer.apple.com/documentation/avfoundation/avcapturedevicewasconnectednotification
https://developer.apple.com/documentation/avfoundation/avcapturedevicewasdisconnectednotification
*2) Call scanHardware() with some period but it cause huge performance hit. Also right now it useless with Android and most of cases with macOS: #2005

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant