- 请问这个音频文件链接为什么安卓可以播放,ios会报 -11850错误?
音频链接: https://app.penavicoxm.com/trade/filestore/GetAudio/%E6%8B%A6%E6%88%AA.wav?UserCode=XYH&UserComp=WDKY 错误截图: [图片] 示例代码: async playAudio(content) { let audioCommonContext = wx.createInnerAudioContext(); audioCommonContext.src = ""; audioCommonContext.autoplay = true; audioCommonContext.onError(res => console.log("audioError", res)); audioCommonContext.onCanplay(res => console.log("onCanplay", res)); if (wx.setInnerAudioOption) { wx.setInnerAudioOption({ obeyMuteSwitch: false, }) } else { audioCommonContext.obeyMuteSwitch = false; } let userInfo = Util.getUserInfo(); let fileUrl = 'https://app.penavicoxm.com/trade/filestore/GetAudio/%E6%8B%A6%E6%88%AA.wav?UserCode=XYH&UserComp=WDKY'; this.VoiceUrl = fileUrl; audioCommonContext.src = fileUrl; console.log(fileUrl); try { await new Promise((res, rej) => { audioCommonContext.onError(x => rej(x)); audioCommonContext.onEnded(x => { console.log(x); }); audioCommonContext.play(); setTimeout(() => { audioCommonContext.play(); }, 10); }); } catch (err) { console.log('audioError', err); uni.showToast({ title: err, icon: 'none' }); } },
2023-08-24 - 开放平台为什么接收不到component_verify_ticket的推送?
appid wx5266262d8104a17d 调用地址 https://www.penavicoxm.com/openwechat/openwechat/callback
2023-08-22