backgroundAudioManager 安卓系统无法触发onPlay
backgroundAudioManager 安卓系统无法触发onPlay、onPause和onStop,为什么?IOS和微信工具下是可以的,有人知道吗?bug?
App({
onLaunch: function () {
var that = this;
backgroundAudioManager.onPlay(function (res) {
console.log(‘音乐打开’)
that.globalData.isPlaying = true;
})
backgroundAudioManager.onPause(function (res) {
console.log(‘音乐暂停’)
that.globalData.isPlaying = false;
})
})