Comments (5)
In our application, we usually wanted landscape photos, so this was to get around the problem of people that have auto-rotate turned off.
Full sensor does seem like a better approach (assuming the photo orientation still works right). I'd be happy to merge a pull request if you can make the change?
from cordova-plugin-camera-foreground.
I'm working on a pull request for this.
There are a number of options in the cordova camera plugin that aren't currently brought into the foreground plugin. For example the correctOrientation option.
I could copy the code in to support these, but I'm thinking it might be cleaner if I just declare a dependency on the original plugin, and then override certain methods to render the foreground camera layout.
That way all the code in onActivityResult can stay where it is.
Thoughts on this?
from cordova-plugin-camera-foreground.
Can you declare dependencies on a specific plugin version? If not, things
could get really messy as they change the internals of the camera plugin
over time, and in that case, it might be better to have a snapshot of the
code (but isolated for easy future upgrades).
On Mon, Mar 3, 2014 at 10:01 AM, Joseph Palermo [email protected]:
I'm working on a pull request for this.
There are a number of options in the cordova camera plugin that aren't
currently brought into the foreground plugin. For example the
correctOrientation option.I could copy the code in to support these, but I'm thinking it might be
cleaner if I just declare a dependency on the original plugin, and then
override certain methods to render the foreground camera layout.That way all the code in onActivityResult can stay where it is.
Thoughts on this?
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-36517605
.
from cordova-plugin-camera-foreground.
http://cordova.apache.org/docs/en/3.4.0/plugin_ref_spec.md.html#Plugin%20Specification
The plugin spec doesn't allow you to specify a dependency from the plugin repository, but you can use a url an version. So for instance this would work for locking it down to the current 0.2.7 release:
<dependency
id="org.apache.cordova.camera"
url="https://github.com/apache/cordova-plugin-camera"
commit="r0.2.7" />
Which seems like it would work pretty well.
from cordova-plugin-camera-foreground.
Ok, seems like a good idea to me. As long as you can override the needed
methods, it seems a pretty elegant way to do it. I say go for it. It will
be really nice to have an improved camera plugin!
On Wed, Mar 5, 2014 at 7:54 AM, Joseph Palermo [email protected]:
http://cordova.apache.org/docs/en/3.4.0/plugin_ref_spec.md.html#Plugin%20Specification
The plugin spec doesn't allow you to specify a dependency from the plugin
repository, but you can use a url an version. So for instance this would
work for locking it down to the current 0.2.7 release:Which seems like it would work pretty well.
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-36739064
.
from cordova-plugin-camera-foreground.
Related Issues (11)
- If camera is not available, fails silently and then crashes
- iOS and Winphone will build faliure HOT 11
- Can't capture more than one image per camera session. Does a similar project for Media Capture plugin exist? HOT 1
- take picture, app is restarting after capture. HOT 1
- Switch to front camera HOT 10
- Phone Gap Build HOT 8
- Android app still restarts HOT 1
- Camera.DestinationType.DATA_URL HOT 1
- What is the real purpose of this plug-in? HOT 6
- Support for picking images from the gallery HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-camera-foreground.