[ 
https://issues.apache.org/jira/browse/CB-6696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14011995#comment-14011995
 ] 

Max Franz commented on CB-6696:
-------------------------------

Could this option be set for the plugin via the XML config file then?  The main 
issue is that flash is on by default via the plugin on iOS.  

Even if the plugin doesn't provide an option for this, then I think the plugin 
should set the flash to off by default.  It's better to have it off and have 
the user turn it on if desired, rather than having the flash come on without 
the user wanting or asking for that behaviour.

> Set flash mode for capture video plugin
> ---------------------------------------
>
>                 Key: CB-6696
>                 URL: https://issues.apache.org/jira/browse/CB-6696
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Plugin Media Capture
>            Reporter: Max Franz
>
> The capture video plugin is great, but there are usecases where the default 
> option for the camera flash mode does not suffice.  A lot of the time, the 
> user would prefer the flash be off unless manually set otherwise.
> An option to set the flash mode would be great (right now, I have to patch 
> the plugin for all platforms manually).  The following enums would be 
> required:
> * flash on
> * flash off
> * flash auto
> e.g. for iphone see 
> https://developer.apple.com/library/ios/documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html#//apple_ref/occ/instp/UIImagePickerController/cameraFlashMode
> As an alternative: If having an option to expose this is not preferable, it's 
> also possible 
> * to change the default from "flash auto" to "flash off", or
> * to start by default with "flash off" and save the value the user set last 
> in the app.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to