当我们放置一个文件标签来上传file in HTML
并尝试在iPhone browser
中渲染它时,iOS
提供了2个选项:'Take Photo or Video'
和'Choose Existing'
。
当我们选择'Take Photo or Video'
时,相机被打开,默认为'Photo'
模式。可以通过html/js
设置为'Video' mode
吗?
可以在input
元素上设置accept="video/*"
。这将删除捕获照片的选项以及从照片库中选择照片的选项。
- http://www.wufoo.com/html5/attributes/07-accept.html