- canvas getContext2D drawImage无法绘制video(m3u8格式)
draw() { const w = 300 let h = 200 const dpr = wx.getSystemInfoSync().pixelRatio wx.createSelectorQuery().select('#myVideo').context(res => { console.log('select video', res) const video = this.video = res.context wx.createSelectorQuery().selectAll('#cvs1').node(res => { console.log('select canvas', res) const ctx1 = res[0].node.getContext('2d') // console.error(ctx1) res[0].node.width = w * dpr res[0].node.height = h * dpr setInterval(() => { ctx1.drawImage(video, 0, 0, 960, 720, 0, 0, h * dpr, w * dpr); }, 1000 / 24) }).exec() }).exec() },
2021-12-10 - canvas的drawImage绘制video(m3u8格式)无法绘制?
绘制mp4正常,m3u8无法绘制。是没有相关能力呢,还是把m3u8做了屏蔽处理?
2021-12-09