收藏
回答

Flaw in wx.ChooseMedia sample code

https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.htmlhttps://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html

Flaw in sample code (indexer missing):

is:

console.log(res.tempFiles.tempFilePath)
console.log(res.tempFiles.size)

should be:

console.log(res.tempFiles[0].tempFilePath)
console.log(res.tempFiles[0].size)

Kind regards,

Markus

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容