gpt4 book ai didi

jquery - 使用 HTML5 不使用 Phonegap 打开 iOS 相机

转载 作者:行者123 更新时间:2023-12-01 08:12:53 24 4
gpt4 key购买 nike

我正在使用 html5 代码并尝试使用 <input type="file"> 打开相机。它在 Android 上运行良好,但在 iOS 上则不然。

如何使用 HTML5(无需 Phonegap)从 iOS 平台访问相机?

最佳答案

你可以试试这个:

<input type="file" capture="camera" accept="image/*" id="cameraInput">

但它必须是 iOS 6+ 才能工作。

可以在此处找到示例:

Capturing camera/picture data without PhoneGap

关于jquery - 使用 HTML5 不使用 Phonegap 打开 iOS 相机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12401922/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com