我的JS源 代码如下: onReady:function(e) { this.audioCtx = wx.createInnerAu this.audioCtx.src ="./../../src/ this.audioCtx.onPlay(() => console.log("play") ); this.audioCtx.onPause(() => console.log("pause") ); }, play:function() { //手动开始播放 this.audioCtx.play() }, pause:function() { //手动暂停播放 this.audioCtx.pause() }, replay:function() { //手动重头播放 this.audioCtx.seek(0) }, WXML源代码如下: <!--pages/audioDemo/audioDemo.wxml--> <text>pages/audioDemo/audioDemo.wxml</text> <button type="primary" bindtap="play">播放</button> <view style="height: 20px;"></view> <button type="primary" bindtap="pause">暂停</button> <view style="height: 20px;"></view> <button type="primary" bindtap="replay">重头播放</button> 在JS编中编编曲errMsg: "readFile:fail permission denied, open ./../../src/song.mp3"}errMsg: "readFile:fail permission denied, open ./../../src/song.mp3"
InnerAudioContext.src使用本地音频文件不能播放音频?{errMsg: "readFile:fail permission denied, open ./../../src/song.mp3"}errMsg: "readFile:fail permission denied, open ./../../src/song.mp3"
07-30