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
Flutter doesn't recognise external USB camera #42413
Comments
Hi! Is there plans to add support for external cameras in next camera library version? #31225 does not answer this directly.... |
Is external camera access a vendor/device dependant capability? |
this and SD card support would be golden 🙏 |
Hi! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Take a look at this plugin, I haven't tested it yet, but it may help. |
This comment has been minimized.
This comment has been minimized.
case CameraLensDirection.back: /// External camera which may not be mounted to the device. I see there is a case for external but is it working i tried with different apps for USB camera and it didnt for me :( any luck someone else ? |
This comment has been minimized.
This comment has been minimized.
This comment was marked as off-topic.
This comment was marked as off-topic.
Which target device are you talking about? Still unable to get USB Video device permission on Android 10 |
This comment has been minimized.
This comment has been minimized.
I'm currently trying to design a Flutter plugin for controlling external UVC cameras (webcams), using the Android libraries described in this article : external usb cameras Nevertheless, one should keep in mind that even on native Android the use of external USB cameras is quite limited. |
This comment has been minimized.
This comment has been minimized.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
1 similar comment
This comment was marked as off-topic.
This comment was marked as off-topic.
Please, help!! Device Feature:
Android Studio from M1-Apple flutter doctor -vflutter doctor -v [✓] Flutter (Channel stable, 3.7.1, on macOS 13.2 22D49 darwin-arm64, locale ru-RU) • Flutter version 3.7.1 on channel stable at /Users/User/Documents/devflutter/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 7048ed9 (2 weeks ago), 2023-02-01 09:07:31 -0800 • Engine revision 800594f1f4 • Dart version 2.19.1 • DevTools version 2.20.1[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [✓] Xcode - develop for iOS and macOS (Xcode 14.1) [✓] Chrome - develop for the web [!] Android Studio (version 2022.1) [✓] VS Code (version 1.75.0) [✓] Connected device (3 available) [✓] HTTP Host Availability ! Doctor found issues in 1 category.
(I tried to change the java code but without success) Log erroreLaunching lib/main.dart on rk3588 in debug mode... After tap select camera EXTERNAL |
When testing the latest version of the example, on a tablet without cameras, I attached an external camera. The external ka recognizes. @hamid811394 |
android 12 external camera recognizes |
!!!!!!!!!!!!!!!!! After it recognizes the camera, the application works with it and crashes. |
Solution errore: retrieving camcorder profile params.This file redacted:
Delete field:
Method editing.
|
This comment was marked as off-topic.
This comment was marked as off-topic.
@KennyTC Hello. I'm not sure if an external camera will work on the emulator. Another problem is that if there is an internal chamber, the external chamber may not open. |
@Taverz In android 12, external camera works well in system camera app. When i inspect ResolutionFeature.java, i found the following condition is not met: Then i tried to return "return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_480P);" without checking the above condition, following error shows: E/MediaProfiles(15037): The given camcorder profile camera 100 quality 0 is not found I tried @Taverz your solution but no luck. |
I can give you my working code for you to try, I can't help you with anything else.
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Hi Pranav, |
If the Flutter team needs a use case for this: embedded systems. Particularly kiosks. But this could be used for infotainment systems and so on. |
Hi @Taverz can you please add your working code as a git repo? is it possible for you? |
Any update on this ? |
tested the flutter camera example project and one i made myself and could't get any of the apps to even list the OTG Camera with Tested with Physical Android 9 and 13.
|
any solutions for that |
Use case
Not recognizing external USB camera
Proposal
Hi, I want to use my external usb camera but flutter does not recognize it, it just finds my rear and my front cameras. Please take a look at it .
Thank you
The text was updated successfully, but these errors were encountered: