简体   繁体   English

选择“拍照”选项时,iOS 8 html 输入文件控制黑屏

[英]iOS 8 html input file control black screen when selected "Take Photo" option

Does anybody face problem of black screen when selected the option to "Take Photo" on iOS 8 with html input file control?使用 html 输入文件控制在 iOS 8 上选择“拍照”选项时,是否有人遇到黑屏问题?

For example, if you try http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_fileupload_get例如,如果您尝试http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_fileupload_get

click on "choose file" on iOS 8 (iphone 6 device) select "Take Photo" option, the screen goes black.在 iOS 8(iphone 6 设备)上点击“选择文件”选择“拍照”选项,屏幕变黑。

Thanks谢谢

In case if anybody faces the same problem, enable safari to access camera under Settings>Privacy>Camera.如果有人遇到同样的问题,请在“设置”>“隐私”>“相机”下启用 safari 访问相机。 Somehow on my device it is disabled, may be i must have disabled it at some point and forgot it.不知何故,它在我的设备上被禁用,可能是我必须在某个时候禁用它并忘记它。

Late to the game, but I was having a similar issue.游戏迟到了,但我遇到了类似的问题。 iOS requires camera access to be over SSL to work properly, otherwise you'll just get a blacked out camera UI. iOS 需要通过 SSL 访问相机才能正常工作,否则你只会得到一个黑色的相机 UI。

I agree with Giacomo that it is related to the app losing focus, ie going into the background.我同意 Giacomo 的观点,这与应用程序失去焦点有关,即进入后台。 To restore operation, you have to close the app then re-launch.要恢复操作,您必须关闭应用程序然后重新启动。 Once another app takes the foreground, the camera stops.一旦另一个应用程序进入前台,相机就会停止。 At least this is true of PWA apps.至少 PWA 应用程序是这样。

ios 13.4 resolves this. ios 13.4 解决了这个问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在iOS 7 WebView的HTML输入控件中选择文本时,如何删除或禁用“定义”选项? - How to remove or disable “Define” option when selecting text in an HTML input control on an iOS 7 WebView? iOS 在选择较低分辨率时旋转图像(HTML5 输入文件) - iOS rotates image when lower resolution selected (HTML5 Input file) 在html选择输入中更改所选选项的颜色 - Change color of selected option in html select input 拍照并使用 CSS 和 java 脚本将其放在 html 文件中 - Take a photo and put it on a html file using CSS and java script 在 HTML 输入字段中选择文件时显示确认 - Display confirmation when file has been selected in HTML input field HTML:选项标签中的三元运算符,如果与输入匹配,则显示已选择的选项 - HTML: Terinary operator in option tag showing option as selected if it matches input 如何发送(POST)a.json 文件通过客户端 HTML 表单上的输入文件控件选择 - How to send (POST) a .json file selected via an input file control on client side HTML form 如何从 html 表中的动态生成的输入文件控件中删除一个选定文件的文件 - How to Remove one file of selected files from dynamic generated input file control in a html table 在html中选择某些选项时如何使某些输入字段出现? - How to make certain input fields appear when selected certain option in html? iOS 9-从现有资料库中选择照片时不提交Web表单 - iOS 9 - Web Form Not Submitting When Photo Selected from Existing Library
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM