wx.chooseVideo({
sourceType: ['camera'],
maxDuration: 30,
camera: 'front',
compressed: true,
success(res) {
if (res.errMsg === "chooseVideo:ok") {
if (res.duration < 3) {
wx.showToast({
title: "拍摄视频太短,请重新拍摄",
icon: 'none',
duration: 2000
});
return;
};
if (res.duration >= 30) {
wx.showToast({
title: "拍摄视频太长,请重新拍摄",
icon: 'none',
duration: 2000
});
return;
};
wx.showLoading({
title: '加载中...',
mask: true
});
console.log(277,res,res.tempFilePath)
that.uploadFile(res.tempFilePath)
} else {
wx.hideLoading();
wx.showToast({
title: "视频上传失败,请重新拍摄上传",
icon: 'none',
duration: 2000
});
}
},
fail(res) {
wx.hideLoading();
wx.showToast({
title: "视频上传失败,请重新拍摄上传",
icon: 'none',
duration: 2000
});
}
})
你好,无权限是什么意思呢?具体返回什么信息?