Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: taking snapshot do not return actual camera preview

See original GitHub issue

I use method CameraPreview.takeSnapshot(function (base64PictureData) ), because we taking not standard size of picture and it is important feature. So method takePicture() does not fit for my situation. Seems on android phones and tablet plugin is making picture bigger that actual size of camera preview. I tried it on real devices and emulator. For ios I haven’t notice this problem. I also attach screenShots, which show the problem Снимок экрана 2019-08-13 в 11 23 48 Снимок экрана 2019-08-13 в 11 23 41

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:11
  • Comments:6

github_iconTop GitHub Comments

westongangercommented, Jan 13, 2020

PR #209 is what introduced this functionality. I would actually like to see the ability to take picture of the preview. If anyone wanted to take a stab at adding the old behaviour back by maybe adding an option to take pictures as preview or full size photo (current).

marcusdiycommented, Feb 2, 2020

Yep, we are doing the same but doing it with js slows down the process quite a bit… on android seems like it will show the centered part so we are calculating the crop area based on that

Read more comments on GitHub >

github_iconTop Results From Across the Web

Screenshot and camera preview not working at same time
1 Answer 1 ... You cannot getDrawingCache from camera preview surface. You must read pixels from glsurface, or get frame. Look at this...
Read more >
Snapshot Frequently Asked Questions - Progressive
Snapshot prices your insurance differently and personalizes your insurance rate based on your actual driving (called usage-based car insurance insurance).
Read more >
Take a screenshot or record your screen on your Android device
You can take a picture (screenshot) or record a video of your phone's screen. After you capture your screen, you can view, edit,...
Read more >
Camera API | Android Developers
For users to effectively take pictures or video, they must be able to see what the device camera sees. A camera preview class...
Read more >
Preview Snapshots Not Updating - Arlo Community
Camera thumbnails (from the cloud) are not of the most recent video. ... Using Android with version 3.6.6_28456 of the Arlo app.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found