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"/>
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.
We can only add support for Android 5.0 and higher.