详细问题描述
在打包后,在iphone6 和 iPhone7 上 调用摄像头拍摄视频时候回闪退
重现步骤
[步骤]
[结果]
[期望]
运行环境
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();
})
});
联系方式
422809850
18136194705
0 个回复