[英]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.