袁庆春
袁庆春
  • 发布:2017-06-19 15:45
  • 更新:2017-06-19 15:45
  • 阅读:883

【报Bug】

分类:HBuilder

详细问题描述
在打包后,在iphone6及以上版本的手机上拍摄视频是会出现闪退,在更新这个版本之前是没有这个问题的。

重现步骤
请打包你们含有拍摄视频的demo ,然后在手机上运行,即可重现。

运行环境
HBuilder

8.8.0.201706131506
[浏览器版本]
[IDE版本]
[mui版本]

附件
vidView.addEventListener('tap', function(event) {
var cmr = plus.camera.getCamera();
var res = cmr.supportedVideoResolutions[5];
var fmt = cmr.supportedVideoFormats[0];
cmr.startVideoCapture(function(p) {
setTimeout(function() {
cmr.stopVideoCapture();
}, 5000);
plus.io.resolveLocalFileSystemURL(p, function(entry) {
vfiles.push({
name: "uploadkey",
path: p
});
document.getElementById("vid").style.display = "block";
document.getElementById("vCloseBtn").style.display = "block";
document.getElementById("vid").style.backgroundColor = "lightgrey";
document.getElementById("vid").src = entry.toLocalURL();
checkvfiles();
}, function(e) {
outLine("读取录像文件错误:" + e.message);
});

}, function(e) {
alert("读取录像文件错误:" + e.message);
}, {
resolution: res,
format: fmt
});
document.getElementById("vCloseBtn").addEventListener('tap', function(event) {
vfiles.pop();
document.getElementById("vid").style.display = "none";
document.getElementById("vCloseBtn").style.display = "none";
checkvfiles();
})

});

联系方式
QQ:422809850
电话:18136194705

2017-06-19 15:45 负责人:无 分享
已邀请:

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