Details
-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
3.9.0
-
MOODLE_39_STABLE
Description
Webview used for LTI tools does not properly support 'capture' attrubites. If you launch the same page outside the app in OS's chrome browser and click on the examples above you will see the OS will automatically launch an intent that matches the capture type.
However if you launch that same page via the moodle app's webview container, it uses the standard file selector without firing the additional intent or filtering to match the accept type.
Examples
To capture video using the device's local video camera:
<input type="file" accept="video/*" capture>
To capture audio using the device's local microphone:
<input type="file" accept="audio/*" capture>
Example inputs
http://anssiko.github.io/html-media-capture/
Spec Docs
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/capture