Essentials: Add Camera and Recording API

Created on 30 Mar 2018  路  7Comments  路  Source: xamarin/Essentials

Most helpful comment

We are definitely going to add some of this, we purposefully left it out for now since it's a complicated thing to implement properly (especially on Android).

All 7 comments

It may help with features such as QR code recognition or making custom camera application.

+1 for the "QR code recognition" part.

Meanwhile, I'm gonna take a look at @Redth 's ZXing.Net.Mobile

There's a lot of variables and considerations that go into QR code recognition....

First of all you have to decide if you use the system built in stuff which not every platform supports (I don't believe UWP supports this, and Android would mean a hard dependency on Google Play Services - Vision). Otherwise you need to use something like ZXing.Net to do the decoding which is non-trivial.

Not to mention there's a lot of moving UI parts involved in being able to do QR code recognition.

I like the spirit of this idea, but I think this is too heavy to pull into a project like Caboodle.

I think we should remember the idea behind Caboodle - it is to provide a uniform, clean API for _existing_ platform features/functionality. QR code reading is not really a platform feature, but rather a nice feature.

I'm sorry to make you confused. I didn't mean "Add QR code recognition".

I want you to add media API like
``` C#
// pseudo code
var result = await Media.TakeAsync(MediaType.Picture);
if (result.IsSuccess) {
var path = result.FilePath;
byte[] data = result.RawData;
}

``` C#
// pseudo code
await Media.OpenCameraAsync();
await Media.OpenVoiceRecorderAsync();

I didn't want you to add QR code recognition to Xamarin.Essentials.

We are definitely going to add some of this, we purposefully left it out for now since it's a complicated thing to implement properly (especially on Android).

Need to split this into two proposals. There is really:

  • AudioRecorder
  • Camera
  • ImagePicker

I am going to close this and open new proposals

Was this page helpful?
0 / 5 - 0 ratings