- Video组件在ios中无法播放视频,安卓可以?
<Video style={{ width: "100%" }} id="video" src="https://paytest.zsins.com/openapi/public/preview/eyJidWNrZXROYW1lIjoiZXh0cmEiLCJvYmplY3RJZCI6IjIwMjMwNDI4LzYyZGZiNTgwNjM1ZDQ2YzdiZjQxZWQ3MjAzODRiNWRjLzIzMDQyOF8xNGVqYTduViIsImZpbGVOYW1lIjoi5rWL6K*VLm1wNCJ9?download=false&file=mp4" initialTime={0} controls={true} autoplay={false} loop={false} muted={false} />
2023-05-06 - video组件的custom-cache属性有什么效果。
ios中视频组件会卡loading加载不出来,加了custom-cache="{{false}}"就好了。有没有大神知道custom-cache属性有什么效果?
2018-11-22 - 小程序iOS端无法使用video标签播放视频是怎么回事?
以下是最小复现代码: <navigation-bar title="Weixin" back="{{false}}" color="black" background="#FFF"></navigation-bar> <view class="scroll-area"> <view class="intro">欢迎使用代码片段,可在控制台查看代码片段的说明和文档</view> <!-- 将以下地址换成官方demo就可以在iOS上播放,但是这个链接就播放不了,在Android或者电脑端是可以播放的 --> <!-- 官方demo链接:http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400 --> <video id="myVideo" controls="controls" src="https://api-stg.szhti.com.cn:13777/IEDXCX/M0141007/A01F1/?md5=7cd7950212217121577689fff4911b4b.mp4"></video> </view>
2023-11-10 - canvas 2d导出第一张图片时空白,是代码问题?
用户上传的图片中第一张有可能是空白的图片,很奇怪,感觉是代码问题,ctx.drawImage后需要延迟调用canvasToTempFilePath吗? wx.createSelectorQuery() .select('#canvas') .fields({node: true, size: true}) .exec((res) => { const canvas = res[0].node let dpr = wx.getSystemInfoSync().pixelRatio; dpr = dpr > 2 ? 2 : dpr canvas.width = this.cWidth * dpr canvas.height = this.cHeight * dpr const ctx = canvas.getContext('2d') const img = canvas.createImage() img.src = tempFilePaths[0] img.onload = () => { ctx.drawImage(img, 0, 0, this.cWidth * dpr, this.cHeight * dpr) wx.canvasToTempFilePath({canvas, success: (res) => { ... }}) } })
2022-05-09