wx.getVideoInfo({ src:url, success: (res) => { console.log('getvideoInfo:',res) } }) Uncaught (in promise) TypeError: wx.getVideoInfo is not a function at getVideoStatus (wxParse.js? [sm]:29) at Object.wxParse (wxParse.js? [sm]:63) at H._callee$ (article-desc.js? [sm]:91) at L (regenerator.js:1) at Generator._invoke (regenerator.js:1) at Generator.t.<computed> [as next] (regenerator.js:1) at asyncGeneratorStep (asyncToGenerator.js:1) at c (asyncToGenerator.js:1)
这个问题解决了吗,我也遇到。但是试过几个真机没有出现
你好,检查下基础库是不是2.11.0或者以上。
你代码是怎么写的呢
src:url,
success: (res) => {
console.log('getvideoInfo:',res)
}
})
Uncaught (in promise) TypeError: wx.getVideoInfo is not a function
at getVideoStatus (wxParse.js? [sm]:29)
at Object.wxParse (wxParse.js? [sm]:63)
at H._callee$ (article-desc.js? [sm]:91)
at L (regenerator.js:1)
at Generator._invoke (regenerator.js:1)
at Generator.t.<computed> [as next] (regenerator.js:1)
at asyncGeneratorStep (asyncToGenerator.js:1)
at c (asyncToGenerator.js:1)