sony / flutter-elinux-plugins

Flutter plugins for embedded Linux (eLinux)
BSD 3-Clause "New" or "Revised" License
47 stars 24 forks source link

Camera #6

Open HidenoriMatsubayashi opened 3 years ago

HidenoriMatsubayashi commented 3 years ago

Create camera plugin

TODO:

Nagendra-Bankupalli commented 3 years ago

@HidenoriMatsubayashi , is camera plugin depends on video player ?

HidenoriMatsubayashi commented 3 years ago

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

Nagendra-Bankupalli commented 3 years ago

@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.

HidenoriMatsubayashi commented 3 years ago

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

Nagendra-Bankupalli commented 3 years ago

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.

HidenoriMatsubayashi commented 3 years ago

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

Nagendra-Bankupalli commented 3 years ago

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

HidenoriMatsubayashi commented 3 years ago

adding "upgrade" switch would be helpful

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

Nagendra-Bankupalli commented 3 years ago

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

HidenoriMatsubayashi commented 3 years ago

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?

Nagendra-Bankupalli commented 3 years ago

I am using plugin example.

HidenoriMatsubayashi commented 3 years ago

@Nagendra-Bankupalli

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

Arna-Maity commented 1 year ago

@HidenoriMatsubayashi Does the camera plugin support multiple cameras?

HidenoriMatsubayashi commented 1 year ago

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