gpt4 book ai didi

cordova - Phonegap :difference between capture. captureImage 和 camera.getPicture

转载 作者:行者123 更新时间:2023-12-04 20:00:37 25 4
gpt4 key购买 nike

我正在尝试创建一个 phonegap 应用程序来用它的相机捕捉图像。
当我用谷歌搜索时,我有两个选择
即使用相机api和捕获api。
navigator.device.capture.captureImage(captureSuccess, captureError, options) 和有什么不一样和 navigator.device.camera.getPicture(captureSuccess, captureError, options)

最佳答案

我不知道是否仍然存在差异,但在 2012 年存在差异,您可以在这里看到:
Get and Capture Differences

Camera.getPicture 有很多 capture.captureImage 没有的选项。另一个区别是捕获遵循 W3C 规范,而我们的相机规范是本土开发的。

正如我刚刚看到的 captureImage命令来自 PhoneGap Documentation
getPicture命令来自 Cordova Camera Plugin

关于cordova - Phonegap :difference between capture. captureImage 和 camera.getPicture,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29792385/

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