Commit Graph

19 Commits

Author SHA1 Message Date
cristianoccazinsp
612cb65f2a feat(android): Support to enumerate and select Camera devices (#2492)
* Android only: Support to enumerate Camera devices and to select from one of them.

* No need to have the camera in running state if querying for IDs.

* Silly bug, not using string compare. Also, do not run any camera code if the actual camera doesn't change.

* Crash fix when focus coordinates are set to null/undefined not being handled. Notes about not supported flash/focus

* If a camera is not found, set the first available camera just like Camera2 does.

* missing semicolon

* Fixes to Camera2 API:

- First change is related to camera selection by ID. Some more code was required to correctly set the facing flag and characteristics
- Second change fixes a previous issue (unrelated to the PR) that was causing the preview of the camera to look upside down on rotated devices. Device rotation should not affect the display (nor set it). Device rotation should however be used for the final image (and not screen rotation). Some code was borrowed from Camera1.
2019-09-24 10:47:23 -03:00
cristianoccazinsp
a20eb06139 feat(android): Improve Android Camera1 error and concurrency handling. (#2471)
These changes include the following:
- use atomic boolean for capturing photo flag just like video
- add more exception catching and checks
- raise error instead of failing silently if can't capture photo - improve error handling here
- synchronize stop to avoid race conditions and crashes
- delay params updates (surface) if capturing or recording to avoid bugs
- do not allow video or photo capture if already doing video or photo
2019-09-09 09:15:41 -03:00
Laurin Quast
22533ed8e8
feat: allow camera scene when audio permissions are denied (#2048), Fixes #2047, Fixes #2051 2019-01-18 15:58:48 +01:00
Laurin Quast
401c485db3
feat(rn-camera): deviceOrientation, videoOrientation, pictureOrientation
* feat(rn-camera): add deviceOrientation and videoOrientation to record response.

* feat(rn-camera): add deviceOrientation and pictureOrientation to take-picture-response

* fix(rn-camera): unify orientation handling for recording and takeing picture

* fix(types): adjust typescript types

* docs(rn-camra): document new properties

* fix(android): respect actual boolean value instead of only checking if it is present.

* feat(android): implement orientation prop for takePictureAsync

* feat(android): implement orientation prop for recordVideoAsync

* docs(rn-camera): adjust documentation

* fix(types): unmark properties as ios only

* fix(android): use constants
2018-12-12 15:04:08 +01:00
Robert van Kints
7ee140bbdc feat(android): add inverted google vision barcode scanning (#1896) 2018-11-01 22:27:23 +01:00
Joao Fidelis
497a703964 feat(preview): add android code 2018-05-31 14:27:30 -03:00
Mircea Nistor
269418c126
reenable camera on android emulator 2018-05-18 15:59:03 +03:00
Serhii Avsheniuk
8f72ef949f Add GoogleVision barcode scanner. 2018-04-10 23:32:11 +02:00
Wouter van den Broek
d0e0d26138 Emulator crash fix #1234
On the emulator it crashed because the image byte array was incorrect and no cache directory was defined so it could not be written
2018-03-29 13:49:03 +02:00
Malte Peters
1b06297c3a fix master after accidental pull-request - sorry 2018-03-22 14:33:54 +01:00
Malte Peters
852169ea86
Merge branch 'update-to-current-master' into master 2018-03-22 12:43:11 +01:00
Will Wheeler
17eebff45c Fix stream error and date format error
Fixes #1220
2018-03-15 15:40:30 -07:00
Malte Peters
7bea109e47 chore: restored original CameraModule.java 2018-02-17 11:17:51 +01:00
Malte Peters
32c5385bc3 feat(android): add code for face detection 2018-02-13 17:31:34 +01:00
Malte Peters
917692c16e feat: added package and class structures for opencv face detection 2018-02-09 18:55:18 +01:00
Joao Fidelis
a09436e9ab Implement get view from reactTag on Android and iOS.
Do not save app context on CameraModule
2018-01-24 19:32:24 -02:00
Joao Fidelis
f53aab5729 Create local cache directory and save image there when photo is taken. 2018-01-23 01:48:03 -02:00
Sibelius Seraphini
a0817132d6 rename expo to simple RN, add js files, and export them inside the same camera package 2018-01-01 19:16:02 -02:00
Sibelius Seraphini
ffc74e5e6e Add Camera implementation using CameraView on Android
This is most a copy of expo camera module

this still half baked, missing javascript part and package and modules
fixes

see #246
2017-12-31 13:49:39 -02:00