This feature is supported in mobile applications only.
The following media formats can be used with the
Activates the device file picker.
Activates the device camera.
Activates the device video camera.
Activates the device sound recorder.
To provide users with the HTML media capture feature, you must learn to activate the media capture feature by selecting the file type during file upload:
Activate the media capture feature by adding the
capture attribute to the
<input type="file" capture="filesystem"/>
Assign format, such as
<input type="file" accept="audio/*" capture="camera"/> <input type="file" accept="image/*" capture="camcorder"/> <input type="file" accept="video/*" capture="microphone"/>
capture attribute does not exist or the value has not been entered, the
filesystem format is activated. If the
camcorder format is selected, the device camera is activated.
In the current version of Tizen Studio, the
microphoneformat for the capture attribute is not available as the voice recorder application is not included.
accept attribute (in mobile and wearable applications) indicates which file types are appropriate. If used with a device that has a camera, it activates the device camera. With a device without a camera, it activates the My photo folder.
For the complete source code related to this use case, see the following file: