It's strange that Mini Program's music can't be paused!

console.log is written in front of pasue () and the console has output. If you write pause () in front of log, you won"t execute it. I don"t know what the problem is.

audioPlay() {
console.log("autoplay")
InnerAudioContext.pause()
}

use the official case, the case can be played with sound


const innerAudioContext = wx.createInnerAudioContext()
innerAudioContext.autoplay = true
innerAudioContext.src = "http://ws.stream.qqmusic.qq.com/M500001VfvsJ21xFqb.mp3?guid=ffffffff82def4af4b12b3cd9337d5e7&uin=346897220&vkey=6292F51E1E384E061FF02C31F716658E5C81F5594D561F2E88B854E81CAAB7806D5E4F103E55D33C16F3FAC506D1AB172DE8600B37E43FAD&fromtag=46"
innerAudioContext.onPlay(() => {
  console.log("")
})
innerAudioContext.onError((res) => {
  console.log(res.errMsg)
  console.log(res.errCode)
})

audioPlay () {
console.log ('autoplay')
this.InnerAudioContext.pause ()
}


case?
InnerAudioContext
innerAudioContext

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c0cade-32b00.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c0cade-32b00.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?