Plan to make CameraView more stable #206
Replies: 4 comments 11 replies
-
I would like to give this a try. I previously implemented a Barcode Scanner (custom renderer + Camera X) in Xamarin that returned byte[] of YUVLuminanceSource from preview for further processing in shared project. If you would like, I can put together a demo project of the camera running just the preview, and see how it turns out. I am also wondering how the Handler architecture would factor in the porting of CameraView, since my implementation still uses the custom renderer architecture. |
Beta Was this translation helpful? Give feedback.
-
Hey, please check this one too XD |
Beta Was this translation helpful? Give feedback.
-
Camera API and a CameraView should definitelly be in the essentials! Plus in Xamarin Essentials, they already implemented it even for UWP, all that is needed is to port it here (unfortuanatelly I'm completly new to this, but it's said everywhere, that porting Xamarin to MAUI should be simple no?) |
Beta Was this translation helpful? Give feedback.
-
Closed as CameraView is open as an Issue #1080 and being worked on. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
The
CameraView
control on XCT is far away from what we want as a stable and reliable control, right now we support 3 platforms Android, iOS, and UWP. From these 3 platforms, the Android implementation is a nightmare to maintain. In a general overview I can list those issues:Is very terrifying to do any change on that codebase without breaking something that's working already. From that, I came with this idea/plan.
The Plan
Since we're moving all controls to a new place this is the right moment to break hard, in other words, we should drop some features on our control and implement a very basic
CameraView
, make sure that's stable and solid and then do enhancements.I know that's not ideal at first hand to drop features and break our users but if we have good community support on this we can be at the same level, in terms of features, that we're in XCT on the release date.
I believe that we can do the following steps to execute this plan.
First Step
Agree on what features we will have for the first version of the
CameraView
. I would say that we should be able to take a picture and return theStream
orbyte[]
to the user.Second Step
We need to reduce the complexity of our codebase, as I said before the Android implement is the most complex one, to fix that we should get rid of the
Camera2
API and use theCameraX
API, that's much easier to work with.Third Step
Implement missing features that we already have implemented on the XCT version. We don't need to implement all of them if we see that isn't too much value in adding the feature here (e.g. a feature that almost no one is using).
Fourth Step
Implement new features and make everyone happy!
Beta Was this translation helpful? Give feedback.
All reactions