安卓调用H5+录像接口,录制完成后,点击播放按钮,按道理应该会播放此时录制的视频文件,然而却触发了CameraErrorCallback;
iOS下是正常的。
var cmr = plus.camera.getCamera();
var res = cmr.supportedVideoResolutions[0];
var fmt = cmr.supportedVideoFormats[1];
cmr.startVideoCapture(function(path) {
uni.showModal({
title: "视频地址",
content: path,
showCancel: false,
confirmText: "确定"
});
}, function(error) {
uni.showModal({
title: "弹窗标题",
content: "取消录制小视频",
showCancel: false,
confirmText: "确定"
});
}, {
resolution: res,
format: fmt,
filename: "_downloads/video/",
videoMaximumDuration: 10
});