Commit Graph

310 Commits

Author SHA1 Message Date
Chris Duke d15022d560 Fix bug 357. Setting preview callback to null before camera release. (#410) 2016-09-13 14:17:45 -07:00
Gonzalo Aguirre 22f79985b2 Add missing dependency (#411)
* 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
2016-09-13 14:16:27 -07:00
Gonzalo Aguirre b01c64e773 Mirror image for Android (#399)
* 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
2016-09-13 09:48:48 -07:00
jacobSingh 2bbdf8ce91 Update README.md (#407) 2016-09-13 02:08:25 -07:00
David 3ff9a5852a Update Readme (#406)
for everyone that links it manually  - see: https://github.com/lwansbrough/react-native-camera/issues/164
2016-09-13 01:21:28 -07:00
matejkriz f4bf30e17b prevent freezing when opened 2 times via navigator (http://stackoverflow.com/questions/33046061/) (#380) 2016-09-12 20:31:46 -07:00
Sergio Navarrete Suárez ae88ac7405 Updates README.md: Manual Android install (#385)
Changes MainActivity.java to MainApplication.java.

For people with little or no Java experience, it also ensures the list returned by getPackages() is separated by a coma.
2016-09-12 20:30:02 -07:00
Marc Johnson 046970feca Android video flipped rotated #388 and activity pause support (#394)
* 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)
2016-09-12 20:29:14 -07:00
Kyle Corbitt 1e581d7c97 Set the device orientation before instantiating RCTCamera (#368) 2016-09-12 20:20:46 -07:00
dcmdestello 14836aef58 Fix setFlashMode was calling setTorchMode. (#396) 2016-09-05 10:36:07 -07:00
Kyle Corbitt 6834e594f4 adjusted rotation should be that of camera, not display (#393) 2016-09-03 12:35:09 -07:00
Kyle Corbitt 696d55af01 record method not documented, shouldn't be exposed (#392) 2016-09-03 12:34:18 -07:00
Kyle Corbitt a378edabbc replace System.console with Log.e (#390) 2016-09-01 11:55:22 -07:00
anativ be8b89c5cc fix example jsCodeLocation (#360) 2016-08-27 21:56:44 -04:00
Marc Johnson e326d51a53 Android support for recording video (#262)
* 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
2016-08-27 21:49:46 -04:00
Chad Wilken 1e092b5573 Check if console is not null as preferred by https://developer.android.com/reference/java/io/Console.html (#381) 2016-08-24 23:16:54 -07:00
Tuomas Peippo 355a6daea3 Move setCaptureQuality outside of capture function (#322) 2016-08-02 16:22:15 -04:00
Gethin Webster 2444964ead Ensure that preview orientation is correct on launch (#354) 2016-08-01 18:22:35 -07:00
Jason Marshall 1032370749 rnpm is part of react-native now (#355) 2016-08-01 18:19:41 -07:00
Nicolas Charpentier 9ddc787cb5 Merge pull request #334 from king6cong/example-fix
fix Example js bundle failure
2016-07-11 09:33:04 -04:00
king6cong d8cdbd6b0f fix Example js bundle failure 2016-07-04 21:26:32 +08:00
Zack Story d4d1aec581 add z orientation comment, closes #308 2016-07-02 20:59:13 -07:00
gchiocchio 6f989a51bd Fix Z-Order issue child item Camera Android 2016-07-02 20:44:48 -07:00
Jonathan Stanton 0d32769dac Add podspec (#329)
* Add podspec file

* Add instructions for CocoaPods
2016-07-02 12:01:43 -07:00
Nicolas Charpentier 75093a36d8 Merge pull request #312 from stantoncbradley/master
add commitConfiguration to stopSession
2016-06-27 11:44:11 -04:00
Nicolas Charpentier e1f04e082a Merge pull request #304 from charpeni/example
Add example
2016-06-14 09:16:25 -04:00
stantoncbradley 5ba2d3e40d add commitConfiguration to stopSession 2016-06-05 12:40:32 -07:00
Darryl Blake b2d9fa904b React, and Component should now be imported from 'react', not 'react-native'. (#297) 2016-06-01 10:30:52 -07:00
Nicolas Charpentier 8e1c14cda3 Export constants (#305) 2016-06-01 10:25:59 -07:00
Nicolas Charpentier 1024c6bed5 Add example 2016-05-30 11:19:43 -04:00
Charlie Hawker 61617e2bd5 Fixes #301 (#302) 2016-05-28 12:12:09 -07:00
Matt Dean a2f8901f95 Remove duplicate playSoundOnCapture property (#299)
On Android this throws a SyntaxError: Attempted to redefine property 'playSoundOnCapture'.
2016-05-26 11:45:14 -07:00
Ryan Wu bff819c574 More accurate log (#289)
Move capturing audio log when it's actually capturing
2016-05-18 08:30:07 -07:00
Radu-Marius Popovici 569da0c31a fix iOS regression (#287)
* 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

* fix regression on iOS
2016-05-16 09:28:47 -07:00
Locly a7464cb194 Update AndroidManifest.xml (#275)
Made camera and autofocus properties optional so that devices without a camera/autofocus can continue to run
2016-05-10 11:06:07 -07:00
Radu-Marius Popovici 0c3dba1ff6 fix snapshot orientation when device orientation is locked (#232)
* 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
2016-05-10 11:05:03 -07:00
Tom f9137824a0 Update index.js (#282)
Changed the way PropTypes is imported to fix warning in react native 0.25.
2016-05-10 11:03:06 -07:00
Zack Story 347d04e843 Update README.md 2016-04-27 20:37:58 -07:00
Zack Story 8d42cd4dde Update README.md 2016-04-27 20:37:48 -07:00
Zack Story c3ca7cbb03 Merge pull request #270 from lwansbrough/v1
v1 Updates
2016-04-27 20:34:46 -07:00
Kyle Corbitt 1fdb3e73a8
remove undefined methods 2016-04-26 10:41:10 -07:00
Zack Story 2dc43922dc
merge device orientation branch 2016-04-23 13:02:29 -07:00
Jason Brown 75dff8bff1 Add photo documentation (#269) 2016-04-23 12:59:17 -07:00
Jason Brown 2a78d0e1d0 Add alias for photo (#268)
* Add alias for photo

* Map photo to high on android
2016-04-23 12:59:06 -07:00
Kyle Corbitt b793b38bbf
rename Camera to index 2016-04-23 12:54:21 -07:00
Kyle Corbitt e95f560526
torch fixes 2016-04-23 12:50:14 -07:00
Kyle Corbitt 7fc183c2e7
increase cohesion of ios methods 2016-04-23 12:50:05 -07:00
Zack Story 57c391cf1a
[barcode] proxy onBarCodeRead, fix constants 2016-04-23 12:45:45 -07:00
Zack Story b0b2a0889d
[capture] fix android HashMap -> WritableMap 2016-04-23 12:45:45 -07:00
Zack Story 9162879305
[barcode] default barCodeTypes to [] if no barcode listener 2016-04-23 12:45:44 -07:00