Android MediaRecorder:
- Most importantly, call Camera.unlock() before setting the camera on the
MediaRecorder instance, and release() not just reset() when releasing the MediaRecorder
instance!
- Add comments and notes for preparing and releasing MediaRecorder instance.
- Add onError callback for errors during recording session.
RCTCameraViewManager, RCTCamera, RCTCameraViewFinder, RCTCameraView:
- Implement setCaptureMode, preparing camera based on captureMode. Currently, the only step that
needs to be taken here is setting the recording hint for videos.
- Handle setting _captureMode instance variable where applicable.
Sizing
- Determine ViewFinder supported sizes based on actual captureMode (i.e., get supported picture
sizes when in still capture mode, and get supported video sizes when in video capture mode).
Output files:
- Get appropriate external storage public directory based on media type (image or video).
- Minor variable renaming to indicate that both images or videos can be saved.
README:
- Update captureTarget to indicate that cameraRoll is the actual default for both systems.
- Small clarification for output data type for deprecated memory captureTarget output.
* 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
* 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
* Fix minor orientation bug with front recording on android
* (Android) Made video stop on activity pause
* Revert "Merge pull request #6 from Reaction-Framework/marcejohnson-master"
This reverts commit 8729c65a72af2afc8297e4a4de3c07a54da11580, reversing
changes made to 50416eb0daae447b822307f257c31a1cbc240a2c.
* Revert "Revert "Merge pull request #6 from Reaction-Framework/marcejohnson-master""
This reverts commit 4b87b48c7bd92840566ad76c96961325c2291ee0.
* replace System.console with Log.e (#390)
* 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
* use device orientation on android only with auto orientation
* guard against missing playSoundOnCapture and quality props in options
* add video orientation support
* use device orientation on ios only with auto orientation
* play shutter click sound on capture (android)
* Add Property playSoundOnCapture to enable whether the default shutter sound is played on capture (Android)
Working: set aspect, select camera type, set flash/torch mode, take picture and save it to the file system, mediaroll as data.
Not working: Video capture, set orientation.
Known problem: Front camera pictures are not oriented correctly.