wx.createInnerAudioContext()停止播放
我想在页面启动的时候,播放音频,成功了
onLoad: function(options) { const innerAudioContext = wx.createInnerAudioContext() innerAudioContext.src = options.url innerAudioContext.play()}, |
想在卸载页面时,停止,但是失败了
onUnload: function() { const innerAudioContext = wx.createInnerAudioContext() innerAudioContext.stop() innerAudioContext.destroy()}, |
我猜想可能不是一个实例了,但是该如何解决呢?0.0
