请问,问题解决了么????
tabBar切换后canvas组件不渲染测试出现问题的机型oppo r7sm Android 5.0 iPhone6 plus iOS12.0 开发工具偶尔也出现这个问题 - 当前 Bug 的表现(可附上截图) 切换至tab2后再切换至tab1,canvas组件不显示 [图片][图片] - 预期表现 canvas组件正常显示 - 复现路径 - 提供一个最简复现 Demo https://developers.weixin.qq.com/s/uPT6Hzm37t84
2021-09-06你好, 问题解决了么
TypeError: Failed to execute 'drawImage' 报错?下面是我的代码,想通过wx.getImageInfo获取网络图片后,然后用drawImage在canvas上将图片显示出来,但是一直报错。 代码如下: onShow: function () { var that = this const query = wx.createSelectorQuery() query.select('#shareCanvas') .fields({ node: true, size: true }) .exec((res) => { const canvas = res[0].node const ctx = canvas.getContext('2d') const dpr = wx.getSystemInfoSync().pixelRatio canvas.width = res[0].width * dpr canvas.height = res[0].height * dpr ctx.scale(dpr, dpr) wx.getImageInfo({ src: that.data.photoUrl, success(res) { console.log("头像路径:"+res.path) ctx.drawImage(res.path, 0, 0) ctx.draw() } }) }) }, 报错信息如下: thirdScriptError Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas)';at api getImageInfo success callback function TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLImageElement or SVGImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap or OffscreenCanvas)' at CanvasRenderingContext2D.e.drawImage (http://127.0.0.1:51536/appservice/__dev__/WAService.js:2:647372) at success (http://127.0.0.1:51536/appservice/pages/card/img.js:47:15) at Function.o.<computed> (http://127.0.0.1:51536/appservice/__dev__/WAService.js:2:1366445) at Object.success (http://127.0.0.1:51536/appservice/__dev__/WAService.js:2:124200) at y (http://127.0.0.1:51536/appservice/__dev__/WAService.js:2:526317) at v (http://127.0.0.1:51536/appservice/__dev__/WAService.js:2:526555) at http://127.0.0.1:51536/appservice/__dev__/WAService.js:2:528109 at n.<anonymous> (http://127.0.0.1:51536/appservice/__dev__/asdebug.js:1:12078) at http://127.0.0.1:51536/appservice/__dev__/WAService.js:2:124200 at http://127.0.0.1:51536/appservice/__dev__/WAService.js:2:107123
2021-08-31问题解决了么,同问
live-player 组件,当前直播是暂停状态,调用退出全屏和全屏方法之后,会自动播放直播复现步骤【稳定复现】: 1、点击全屏按钮之前,让直播暂停播放,点击全屏按钮之后,调用全屏方法,会自动播放直播 2、当前状态为全屏,暂停播放,点击退出全屏按钮,进行退出全屏操作,变成半屏状态,也会变成播放,没有暂停 预期表现: live-player 组件不管调用退出全屏方法,还是全屏方法,都不会改变直播的播放状态。 录屏视频:http://share.plvideo.cn/front/video/preview?vid=cec4219165113bde29682a517d9276e2_c
2021-06-16