1***@qq.com
1***@qq.com
  • 发布:2019-10-21 13:32
  • 更新:2019-10-21 13:32
  • 阅读:1188

【报Bug】 IOS 拍照后卡住,captureImage () 方法不返回,直接跳转空白页面

分类:HBuilderX
                                    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 () 方法,返回到空白页面

2019-10-21 13:32 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复