val previewConfig = PreviewConfig.Builder().apply {...preview.setOnPreviewOutputUpdateListener {...
--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/47fcc248-dffd-487a-a600-bd9894470660%40android.com.
I also ran into an issue with the official sample. It looks like the androidx.camera.core.ImageCapture#takePicture(androidx.camera.core.ImageCapture.OutputFileOptions, java.util.concurrent.Executor, androidx.camera.core.ImageCapture.OnImageSavedCallback) method doesn’t work like it should.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/CALUCWwoLe9q1cxzaW4a6xEV7FHLAnfn0DNRMkyUUbgt5TGgyLw%40mail.gmail.com.
Hi Vadim,Thank you for flagging this. We will update the codelab shortly after the beta version of CameraX becomes available. In the meantime, you can use the official sample for reference: g.co/camerax/sample
On Mon, Feb 10, 2020, 12:58 Vadim Rebro <rebro...@gmail.com> wrote:
--Actually the sample code at https://codelabs.developers.google.com/codelabs/camerax-getting-started works for camerax_version = '1.0.0-alpha06'But if you use alpha09 then this code won't work:val previewConfig = PreviewConfig.Builder().apply {...You need to call Preview.Builder method instead.Another thing is that Preview no longer contains setOnPreviewOutputUpdateListener and you need to do something with this:preview.setOnPreviewOutputUpdateListener {...So, I was unable to run the code from that page for CameraX alpha09 but it worked for code samples from https://developer.android.com/training/camerax/preview?hl=en (after I found and fixed a couple of bugs there).https://codelabs.developers.google.com/codelabs/camerax-getting-started
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-developers+unsub...@android.com.