- iOS video 播放视频 object-fit="cover" 设置无效
<video id="myVideo" class="myVideo" src="http://video.xuehuang.cn/userfiles/yt/M1-2-6.mp4" controls="{{false}}" show-center-play-btn='{{false}}' show-fullscreen-btn="{{false}}" bindplay="bindplay" bindpause="bindpause" bindended="bindended" bindtimeupdate="onPlayTimeUpdate" bindfullscreenchange="" initial-time="{{0}}" enable-progress-gesture="{{false}}" object-fit="cover" muted="{{false}}"> </video> Page({ data: { }, onReady() { this.VideoContext = wx.createVideoContext('myVideo') this.VideoContext.play() }, }) .myVideo { position: fixed; z-index: 10; top: 0; left: 0; width: 100%; height: 100%; } iOS video 播放视频 object-fit="cover" 设置无效 contain fill cover 三种设置模式下视频均会出现黑边,不能全屏铺满无黑边播放,安卓是可以的
2021-01-12 - canvas 2d 无法触发bindtouchstart触摸事件?
<canvas id="tipsMoveTouc" type="2d" class="tipsMoveTouc" disable-scroll="{{false}}" bindtouchstart="bindtouchstart" bindtouchmove="bindtouchmove" bindtouchend="bindtouchend" bindtap="bindtap" bindlongpress="bindlongpress"></canvas> bindtouchstart: function (e) { // 检测手指点击事件 console.log('bindtouchstart'); }, canvas 2d 无法触发事件,请问是什么原因啊,安卓 Redmi K30
2021-01-02 - 微信iOS 7.0.20 版本 canvas 2d 绘图无法drawImage图片
var qt = wx.createSelectorQuery(); qt.select('#bbs').fields({ node: true, size: true }).exec((res) => { let canvas = res[0].node; canvas.width = self.page.data.windowWidth; canvas.height = self.page.data.windowHeight; let layer = canvas.getContext('2d'); let img1 = canvas.createImage(); img1.src = '/image/2.png'; img1.onload = function (res) { console.log('onload成功') layer.drawImage(img1, 300, 10, 300, 300); //方法不执行 } img1.onerror = function (res) { console.log('onload失败') //实际执行了此方法 } }) 微信iOS 7.0.20 版本 使用canvas 2d 绘制drawImage时无法成功绘制,图片不显示,img1.onload不执行,执行了img1.onerror函数,img对象无法onload成功,微信iOS 7.0.18是正常的。
2020-12-28 - beta版本开发工具无法格式化wxml代码,快捷键也无效,mac版本的
beta版本开发工具无法格式化wxml代码,快捷键也无效,mac版本的
2017-08-22