HTML Media Capture
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.
Activating the Media Capture
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
captureattribute 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"/>
captureattribute does not exist or the value has not been entered, the
filesystemformat is activated. If the
camcorderformat 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.
acceptattribute (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:
- Tizen 2.4 and Higher for Mobile