You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today on XCT we have a very complete CameraView implementation but with a lot of bugs and a complex codebase to maintain. In the table below you can see all features implemented by each platform.
Android
iOS
Windows
Preview
✅
✅
✅
Preview Aspect
✅
🚫
🚫
Mirror preview
✅
🚫
🚫
Zoom
✅
✅
✅
Take photo
✅
✅
✅
Flash
✅
✅
✅
Take video
✅
✅
✅
Record audio
✅
✅
✅
Video stabilization
✅
✅
✅
My plan, described in discussion #206, is to drop some features for the v1.0 of this lib. and use CameraX implementation for Android. You can see in the table below what features we will have for v1.0.
Android
iOS
Windows
Preview
✅
✅
✅
Take photo
✅
✅
✅
Flash
✅
✅
✅
After this first implementation, we can add the missing features to all platforms.
Motivation
The motivation for this plan was the fact that CameraView lacks in quality right now and this's our chance to fix it and provide a more reliable Camera control for our community.
Detailed Design
CameraView.shared.cs
publicclassCameraView:View{publicstaticreadonlyBindablePropertyIsCameraViewBusyProperty;publicstaticreadonlyBindablePropertyIsAvailableProperty;publicstaticreadonlyBindablePropertyFlashModeProperty;// Use WeakEventManager publiceventEventHandler<bool>?OnAvailable;publiceventEventHandler<MediaCapturedEventArgs>?MediaCaptured;publiceventEventHandler<string>?MediaCaptureFailed;publicboolIsCameraViewBusy{get;}publicboolIsAvailable{get;}publicCameraOptionsCameraOptions{get;set;}publicvoidShutter();}
We will (probably*) break our users on v1.0 since the API will be missing a lot of features.
there's a chance that we can implement all features for v1.0 if we have a lot of community help.
Alternatives
Follow the [Proposal] CameraView #106 proposal and just port the XCT code to here, but with that, we will bring all issues (if we don't solve them during the port, what I believe it's very hard to do)
[CameraView minimal port]
Link to Discussion
Summary
Today on XCT we have a very complete
CameraViewimplementation but with a lot of bugs and a complex codebase to maintain. In the table below you can see all features implemented by each platform.My plan, described in discussion #206, is to drop some features for the v1.0 of this lib. and use
CameraXimplementation for Android. You can see in the table below what features we will have for v1.0.After this first implementation, we can add the missing features to all platforms.
Motivation
The motivation for this plan was the fact that
CameraViewlacks in quality right now and this's our chance to fix it and provide a more reliable Camera control for our community.Detailed Design
CameraView.shared.cs
Usage Syntax
XAML Usage
C# Usage
Drawbacks
We will (probably*) break our users on v1.0 since the API will be missing a lot of features.
Alternatives
Unresolved Questions