Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6696

Set flash mode for capture video plugin

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maxkfranz Max Franz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: