wx.chooseMedia({
count: 9,
mediaType: ['image','video'],
sourceType: ['album', 'camera'],
maxDuration: 30,
camera: 'back',
success(res) {
console.log(res.tempFiles.tempFilePath)
console.log(res.tempFiles.size)
}
})
https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html
res.tempFiles 是一个数组,文档示例代码直接对数组取 tempFilePath 和 size 都是空值
感谢反馈