请问有解决吗
live-pusher 中 video-width 和 video-height 为什么不起作用?我想设置推流分辨率为1920*1080,我也根据mode 和 码率min-bitrates设置了,最多是1280*720, 请问官方为什么
2023-11-21请问有其他解决方案吗
video-height 和video-width 设置了无效https://developers.weixin.qq.com/miniprogram/dev/component/live-pusher.html
2023-11-21请问解决了吗
部分机型live-pusher video-width和 video-height无效Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E217 MicroMessenger/6.8.0(0x16080000) NetType/WIFI Language/en Branch/Br_trunk MiniProgramEnv/Mac
2023-11-21小程序端如果不用tempFilePath播放视频 如何将每片的数据组合 然后进行播放 web端解决方案是 const data = new Blob([blob1, blob2, blob3], { type: 'text/plain;charset=UTF-8' }) const src = window.URL.createObjectURL(data)
wx.downloadFile 分片下载后返回的 tempFilePath 不能播放?let download = wx.downloadFile({ url: '../download', header: { Range: `bytes=${0}-${1024 * 1024 * 10}` }, contentType: 'blob', complete: (info) => { console.info('YJDMDownloadFileStreamUrl', info) if (info.statusCode === 206) { this.setData({ ['videoList[' + this.data.activeIndex + '].src']: info.tempFilePath, downloadIng: false }) } }, })
2023-10-26临时解决方案 try catch 包一下 在uni.uploadFile 的 complete回调中做处理 因为我这上传接口是调用成功的 try { uni.uploadFile({ url: ``, filePath: item, name: "file", header: { access_token: token, }, success: (data) => { console.info("-----uploadFilesuccess----", data) }, fail: (err) => { console.info("-----fail----", err) this.Toast("上传图片失败"); }, complete: (data) => { if (data.errMsg === "uploadFile:ok") { const file = JSON.parse(data.data); this.fileList = [file.data]; } console.info("-----complete----", data); } }); } catch (e) { console.info('try catch', e); }
在iOS设备中调用 wx.uploadFile 调用报错?在我的iOS设备上调用wx.uploadFile接口报以下错误: "MiniProgramError\nr.replace is not a function. (In 'r.replace(/\;([^\s\;]*?(?=\=))/gi,",$1")', 'r.replace' is undefined)\nTypeError: r.replace is not a function. (In 'r.replace(/\;([^\s\;]*?(?=\=))/gi,",$1")', 'r.replace' is undefined)\nat replace (miniprogram_npm/weapp-cookie/index.js:2414:45)\nat (WAServiceMainContext.js:1:2473449)\nat YX (WAServiceMainContext.js:1:2258626)\nat success (WAServiceMainContext.js:1:2260733)\nat <api uploadFile success callback function>\nat c (WAServiceMainContext.js:1:801289)\nat (WAServiceMainContext.js:1:616788)\nat <NetworkUpload1success callback function>\nat (WAServiceMainContext.js:1:746326)\nat forEach (native code)\nat emit (WAServiceMainContext.js:1:746249)\nat W (WAServiceMainContext.js:1:617843)\nat (WAServiceMainContext.js:1:619289)\nat (WAServiceMainContext.js:1:781469)\nat emit (WAServiceMainContext.js:1:81766)\nat (WAServiceMainContext.js:1:84248)\nat emit (WAServiceMainContext.js:1:81389)\nat subscribeHandler (WAServiceMainContext.js:1:83949)\nglobal code" 设备:iPhone Xs 14.8 [图片][图片]
2022-12-06但是先在h5的登录后 再打开小程序webview 会把h5的带过来
小程序中的Webview和微信环境中的H5共享localstorage吗?小程序的页面A是一个webview,当用户在这个页面登录并且把token存到localstorage之后,退出小程序,直接打开同域名的H5链接,这时候能拿到刚才获取的token吗?
2021-10-27我也是这种情况 微信退出重新登录就好了 至于什么原因不清楚
微信小程序登录提示系统错误微信公众号无法关联小程序。小程序无法扫码登录 [图片][图片]
2020-08-14