* iOS: minor focus and zoom changes
RCTCameraManager focusAtThePoint improvements
- Dynamicaly get size from bounds of camera view, instead of full screen, since
it might not always be the case that the Camera react component is taking up
the entire device screen.
- Also add setting exposure to the same point of interest we are focusing on.
Example
- Add onFocusChanged and onZoomChanged empty callback functions by default to
Example app, allowing tap-to-focus and pinch-to-zoom to be readily
experienced/experimented with.
- Updated react/react-native dependencies to match root package.json.
TODO/Other remarks
- Tap-to-focus seems to still not work perfectly... From logging, it always seems
to get the right location in the view (meaning its getting the right location
from the user touch and transforming it to the {0, 1} range appropriately), and
does indeed engage the focus process, but it seems it sometimes refocuses on the
center-ish region of what's in the camera instead of the location that was actually
pressed. I thought this might be related to the subjectAreaDidChange getting called,
which in turn sets the focus mode to continuous auto-focus at the view center, but
from my experimenting, this method never actually gets called. I wasn't able to
figure out if there's somewhere else in the library that's forcing continuous auto-focus,
or if there's just some bug in our current focus procedure within focusAtThePoint.
* Reset Example/package.json dependency versions to master
* Add mirrorImage support for Android
* Release resources after mirroring
* Mirror image only for TYPE_FRONT
* Remove unnecessary annotation
* Document mirrorImage for Android
* Improved compression and error handling
* Add support for mirroring on Android back camera too
* Initial commit with Android video support
* stopCapture now works
* Bug fixes and parameter enhancements. README updated.
* Modified stopCapture parameter count to match iOS
* fixed promise bug on stopCapture
* Update RCTCameraModule.java
In Android preview and recording sizes are different, which can cause an error. This fix detects the difference and chooses a recording resolution that matches.
* Update RCTCameraModule.java
* Update RCTCamera.java
Creating video functions in style/convention of existing
* Update RCTCameraModule.java
Use new functions for adjusting video capture size and quality
* Update RCTCameraModule.java
Fixes issue where file not video playable (readable) on older devices
* Update AndroidManifest.xml
Since we're reading and writing video and pictures, need permissions for it.
* Fixed upside down camera (on some platforms), and misc bugs and crashes
* Added camera-roll and capture to memory support, new options, and support for duration, filesize, and metadata
* To make merge nicer, temporarily reverting "Added camera-roll and capture to memory support, new options, and support for duration, filesize, and metadata"
This reverts commit 9ea1ad409c7e6121cf0197172e752b7523d4b092.
* Fixed merge & brought back all improvements from 9ea1ad4
* Fixed logic for video -> camera roll
* Updates
* Uncommenting setProfile
* Fix support for React Native 0.25
* Renamed Camera to index
* * Fix after merge android recording
* * Fixed android camera roll file saving
* Added recording to example
* * Android promise rejections with exceptions
* Fixed preview, video and photo sizes
* Android recording result in new, javascript object, format
* * Removed example.index.android.js as there is Example project
* * Readme for example
* don't force a specific codec
* always use cache dir
* * Using MediaScannerConnection instead of ACTION_MEDIA_SCANNER_SCAN_FILE intent
* * As described in https://github.com/lwansbrough/react-native-camera/pull/262#issuecomment-239622268:
- fixed video the wrong direction and recoder start fail at "low,medium" on the nexus 5 x