cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Coleman <don.cole...@gmail.com>
Subject Re: Capture - specify video quality
Date Sun, 24 Mar 2013 22:16:56 GMT
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 <mmocny@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 <shazron@gmail.com> wrote:
>
> > I would map them.
> >
> >
> > On Fri, Mar 22, 2013 at 2:35 PM, Don Coleman <don.coleman@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;
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message