Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27138

Android: Add photo/video capture support to WebView

    Details

    • Sprint:
      2020 Sprint 19

      Description

      Summary:
      Android's Ti.UI.WebView does not currently support "capturing" a photo or video when using one of the below input HTML elements. It will display a photo gallery selection activity window instead.

      • <input type="file" accept="image/*" capture="environment"/>
      • <input type="file" accept="video/*" capture="environment"/>

      To-Do:
      When configuring our Intent in TiWebChromeClient.java, we need to set it to MediaStore.ACTION_IMAGE_CAPTURE for photo capture support and MediaStore.ACTION_VIDEO_CAPTURE for video capture support. We also need to show a CAMERA permission request dialog as well.

      Note:
      We can only add support for Android 5.0 and higher.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              nipoul Nikos Poulios
              Reviewer:
              Gary Mathews
              Tester:
              Sohail Saddique
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration