OpenClinica / enketo-oc

OpenClinica's fork of the Enketo web forms monorepo
Apache License 2.0
0 stars 1 forks source link

Audio item not behaving as expected on mobile devices #115

Open pbowen-oc opened 3 years ago

pbowen-oc commented 3 years ago

Items of type audio are filtering to upload of audio files on Windows/Mac computers. However, on Android/iOS phones/tablets, they are leading the user to record/select other content.

For example, Chrome on iPad it prompts for video content: Annotation 2020-07-15 190431

It was reported that on Android it is prompting for any file.

This same form/item prompts audio file selection on my Windows laptop.

MartijnR commented 3 years ago

We have very limited control over these browser behaviors and on mobile browsers depends on installed apps too, but will have a look.

Enketo is using:

<input type="file" accept="audio/*">

https://codepen.io/MartijnR/pen/wvGgVjN

MartijnR commented 3 years ago

On android using capture="user" or capture="environment" will open an audio record app if present (no difference).

MartijnR commented 3 years ago

Don't see any way to improve this. It's up to browsers (and OS's) to do, I think.