- wx.createBufferURL真机返回路径无法访问
https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.createBufferURL.html var bb = wx.createBufferURL(data) commonFunction.showLogi('jjj', bb) 模拟器返回的路径是http://127.0.0.1:11546/wxblob/1627612962697-cf1c4da2,而真机返回的是wxblob/1627612962697-cf1c4da2。 模拟器指定image.src = http://127.0.0.1:11546/wxblob/1627612962697-cf1c4da2 , 会执行image.onload()回调,而在真机指定image.src = wxblob/1627612962697-cf1c4da2不会执行image.onload回调。
2021-07-30 - VideoDecoder在android以及ios上均无法使用?
使用VideoDecoder解码视频,在android上报错,iOS上无反应直接卡死。试了多种参数配置均无效 最简单的基础api调用无法成功 wx.chooseVideo({ sourceType: ['album'], success(res) { let path = res.tempFilePath; let videoD = wx.createVideoDecoder(); videoD.on('start', (v) => { console.log('start: ', v); console.log("frameData", videoD.getFrameData()); }); videoD.on('seek', (e) => { console.log("seek", e.position); }) videoD.start({ source: path, mode: 0 }); } }) Android报错如下图所示: [图片]
2020-12-08