flutter-elinux-plugins icon indicating copy to clipboard operation
flutter-elinux-plugins copied to clipboard

Camera

Open HidenoriMatsubayashi opened this issue 3 years ago • 14 comments

Create camera plugin

TODO:

  • [ ] ImageStream APIs
  • [ ] Video recording APIs
  • [x] Picture taking APIs
  • [ ] Flash mode API
  • [ ] Exposure APIs
  • [ ] Focus APIs
  • [ ] Support multi cameras

HidenoriMatsubayashi avatar Jul 29 '21 04:07 HidenoriMatsubayashi

@HidenoriMatsubayashi , is camera plugin depends on video player ?

Nagendra-Bankupalli avatar Aug 16 '21 17:08 Nagendra-Bankupalli

No, it doesn't, but using GStreamer is the same with the video_player plugin.

HidenoriMatsubayashi avatar Aug 16 '21 23:08 HidenoriMatsubayashi

@HidenoriMatsubayashi , Thanks, I understand its gst-camerabin plugin. got below error while cross compiling , any paths to be updated ? 💪 Building with sound null safety 💪

elinux/flutter/generated_plugin_registrant.dart:11:22: Error: Method not found: 'PathProviderELinux.register'. PathProviderELinux.register(); ^^^^^^^^ Exception Building an eLinux application with wayland backend in debug mode for arm64 target... 8.2s The build failed.

Nagendra-Bankupalli avatar Aug 17 '21 14:08 Nagendra-Bankupalli

You are trying to cross-build, but does self-building (on x64 for x64) succeed?

HidenoriMatsubayashi avatar Aug 17 '21 23:08 HidenoriMatsubayashi

NO, it gave same error,

$ cd path/packages/camera/example $ flutter-elinux pub get => success $ flutter-elinux build elinux --debug

💪 Building with sound null safety 💪

elinux/flutter/generated_plugin_registrant.dart:11:22: Error: Method not found: 'PathProviderELinux.register'. PathProviderELinux.register(); ^^^^^^^^ Exception Building an eLinux application with wayland backend in debug mode for x64 target... 8.5s The build failed.

Nagendra-Bankupalli avatar Aug 18 '21 05:08 Nagendra-Bankupalli

Are you using the latest version of flutter-elinux? If not, could you use the latest version?

HidenoriMatsubayashi avatar Aug 18 '21 05:08 HidenoriMatsubayashi

@HidenoriMatsubayashi Thank you , it works with latest version. adding "upgrade" switch would be helpful :)

Nagendra-Bankupalli avatar Aug 18 '21 11:08 Nagendra-Bankupalli

adding "upgrade" switch would be helpful

Than you for your feedback. I'll consider to add it!

HidenoriMatsubayashi avatar Aug 19 '21 01:08 HidenoriMatsubayashi

The default orientation of the camera is Portrait, I could change to landscape by forcing it to landscape, as most of embedded platforms are not equipped with sensors, keeping default orientation to landscape would be better I guess. Please let me know if my understanding is wrong

Nagendra-Bankupalli avatar Aug 19 '21 08:08 Nagendra-Bankupalli

Thank you for your feedback.

as most of embedded platforms are not equipped with sensors, keeping default orientation to landscape would be better

Yes, I agree with you. Are you using the example of camera plugin or your own camera app?

HidenoriMatsubayashi avatar Aug 19 '21 09:08 HidenoriMatsubayashi

I am using plugin example.

Nagendra-Bankupalli avatar Aug 19 '21 09:08 Nagendra-Bankupalli

@Nagendra-Bankupalli

Thanks a lot. This is a bug, so I fixed it https://github.com/sony/flutter-elinux-plugins/pull/36

HidenoriMatsubayashi avatar Aug 20 '21 01:08 HidenoriMatsubayashi

@HidenoriMatsubayashi Does the camera plugin support multiple cameras?

Arna-Maity avatar Sep 16 '23 03:09 Arna-Maity

No, not yet. It's one of TODOs.

HidenoriMatsubayashi avatar Sep 16 '23 07:09 HidenoriMatsubayashi