我也遇到这个问题
createInnerAudioContext 播放音频,电脑上可以播放,真机调试没有声音?在电脑上都能正常播放,手机真机调试就会没有声音,也没有报错 // 播放音频 playVoice(item, index) { // 如果点击的是正在播放的语音,则停止语音播放 if (this.palyingMsgData && this.palyingMsgData === item.fileName) { this.handleStopPlayVoice(); return; } // 如果点击的是未在播放的语音,播放之前先停掉别的语音播放 this.stopPlayVoice(); this.palyingMsgData = item.fileName; innerAudioContext.src = item.fileName; innerAudioContext.play(); }, // 停止音频播放 stopPlayVoice() { if (this.innerAudioContext) { this.innerAudioContext.stop(); } }, // 停止语音播放以及处理相关逻辑 handleStopPlayVoice() { if (this.palyingMsgData) { // 停止语音播放 this.stopPlayVoice(); this.palyingMsgData = null; } },
06-26同遇到这个问题,pdf是在线地址,下载到本地太麻烦
web-view在IOS上能正常预览PDF文件,但是在安卓上一直卡加载进度条,这是怎么回事呢?版本库:2.33.0 web-view合法域名:已添加 src是后端pdf文档地址 后端接口:已对response做了处理,如下: response.setContentType("application/pdf"); response.setHeader("Content-Disposition", "inline;filename=test.pdf"); 小程序页面:<web-view src="{{url}}" ></web-view>
05-30Uncaught (in promise) ReferenceError: wx is not defined
WebView 组件,H5调用wx.miniProgram.postMes,要配置wx.conf?WebView 组件,H5调用wx.miniProgram.postMes,要配置wx.conf?
05-24