Originally "mode" was of type "ConfigurationData" ( http://docs.phonegap.com/en/2.5.0/cordova_media_capture_capture.md.html#ConfigurationData) which had three properties "type" which is a string the referred to the mime type of the data to be captured, a "width" and "height" property which would be 0 in the case of image data. The "mode" has been dropped from the spec and we were never able to support it so it should be removed. I've just created an issue to track it:
https://issues.apache.org/jira/browse/CB-2789 Is there some magic script to create all the sub issues for the platform? To answer your question I'd just go with "quality" as an optional parameter. Simon Mac Donald http://hi.im/simonmacdonald On Sun, Mar 24, 2013 at 6:16 PM, Don Coleman <don.cole...@gmail.com> wrote: > I'll map to high, medium and low, and also allow the platform specific > versions to be passed in. > > Was "mode" in the video options the intended name for this setting or can I > add a "quality" option? > > http://docs.phonegap.com/en/edge/cordova_media_capture_capture.md.html#CaptureVideoOptions > > > > > On Fri, Mar 22, 2013 at 10:23 PM, Michal Mocny <mmo...@chromium.org> > wrote: > > > Is it possible to do both? A generic map such that you can write a > generic > > app without platform considerations, but also provide a (less vocally > > documented?) way to specify the platform values. > > > > (I only suggest this because complaints about hybrid apps of late are > that > > they sometimes abstract too much of the underlying platform, I generally > do > > think sensible simplification is the way to go) > > > > > > On Fri, Mar 22, 2013 at 8:41 PM, Shazron <shaz...@gmail.com> wrote: > > > > > I would map them. > > > > > > > > > On Fri, Mar 22, 2013 at 2:35 PM, Don Coleman <don.cole...@gmail.com> > > > wrote: > > > > > > > I'm looking at adding video quality to CaptureVideoOptions. > > > > > > > > Android has 2 options, iOS has 5. > > > > > > > > Should I attempt to map some generic high_quality, medium_quality, > > > > low_quality options to platform specific options or just pass in > > platform > > > > specific options? > > > > > > > > Android: > > > > EXTRA_VIDEO_QUALITY > > > > 0 low quality > > > > 1 high quality (default) > > > > > > > > iOS: > > > > enum { > > > > UIImagePickerControllerQualityTypeHigh = 0, > > > > UIImagePickerControllerQualityTypeMedium = 1, // default > > > value > > > > UIImagePickerControllerQualityTypeLow = 2, > > > > UIImagePickerControllerQualityType640x480 = 3, > > > > UIImagePickerControllerQualityTypeIFrame1280x720 = 4, > > > > UIImagePickerControllerQualityTypeIFrame960x540 = 5 > > > > }; > > > > typedef NSUInteger UIImagePickerControllerQualityType; > > > > > > > > > >