小程序
小游戏
企业微信
微信支付
扫描小程序码分享
因为ios在video标签的src中播放不了http的视频,所以想到先把视频下载下来,然后播放
但是使用downloadFile方法将视频下载下来后,将tempFilePath中的值赋值到video标签的src中并没有显示出来,安卓要很久很久才会出现,ios还是不会出现
请问这是为什么?
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,建议先检查代码,若检查过后问题依然复现,请提供相关代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),以便定位问题
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
const downRes = await wepy.downloadFile({
url: url + '&filename=' + this.order.orderVideo + '&type=2'})
const saveRes = wepy.saveFile({
tempFilePath: downRes.tempFilePath})
this.videoFiles.push(saveRes.savedFilePath)
使用的wepy框架,push到数据中,ios是不播放的
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,建议先检查代码,若检查过后问题依然复现,请提供相关代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),以便定位问题
const downRes = await wepy.downloadFile({
url: url + '&filename=' + this.order.orderVideo + '&type=2'})
const saveRes = wepy.saveFile({
tempFilePath: downRes.tempFilePath})
this.videoFiles.push(saveRes.savedFilePath)
使用的wepy框架,push到数据中,ios是不播放的