var cmr = plus.camera.getCamera();
var res = cmr.supportedImageResolutions[0];
var fmt = cmr.supportedImageFormats[0];
console.log("Resolution: " + res + ", Format: " + fmt);
try {
cmr.captureImage(function(p) {
console.log("Capture image success: " + p);
}, function(e) {
console.log("Capture image failed:!" + e.message);
}, {
resolution: res,
format: fmt
});
} catch (e) {
console.log(e.message);
} finally {
console.log("cmr.captureImage end!");
}
IOS 13 有bug 时候 ,走到console.log("Resolution: " + res + ", Format: " + fmt); log 打印直接 打印console.log("cmr.captureImage end!"); 不进入captureImage () 方法,返回到空白页面
0 个回复