z***@126.com
z***@126.com
  • 发布:2022-09-28 17:25
  • 更新:2022-09-28 17:25
  • 阅读:297

【报Bug】UIWebview/WKWebview内核,plus.camera.getCamera()

分类:HTML5+

产品分类: HTML5+

HBuilderX版本号: 3.6.4

手机系统: iOS

手机系统版本号: iOS 12.4

手机厂商: 苹果

手机机型: iPhone 6

打包方式: 离线

示例代码:

plus.webview.open('page2.html','page2.html',{
kernel: 'WKWebview',
//kernel: 'UIWebview',
kernelRecovery: 'restart'
},'slide-in-right')

var cmr = plus.camera.getCamera()
cmr.captureImage(function(res){
image_dom.src = plus.io.convertLocalFileSystemURL(res)
document.getElementById('div1').innerText = plus.io.convertLocalFileSystemURL(res)
},function(error){
console.log(JSON.stringify(error))
});

操作步骤:

页面1调用“plus.webview.open”使用WKWebview内核跳转方式
页面2调用“plus.camera.getCamera()”拍照返回文件所在位置,赋值给img标签的src图片

预期结果:

页面2的img标签正常显示缩略图

实际结果:

页面2的img标签无法显示缩略图

bug描述:

页面1调用“plus.webview.open”使用WKWebview内核跳转方式
页面2调用“plus.camera.getCamera()”拍照返回文件所在位置,赋值给img标签的src图片
结果:无法显示缩略图

2022-09-28 17:25 负责人:无 分享
已邀请:

要回复问题请先登录注册