一.小知識
1.wx.getBackgroundAudioPlayerState(OBJECT):獲取后臺音樂播放狀(zhuang)態(tai)。
2.wx.playBackgroundAudio(OBJECT)
3.wx.pauseBackgroundAudio()暫停播放音樂。
4.wx.seekBackgroundAudio(OBJECT)控制音樂播放進度。
6.wx.onBackgroundAudioPlay(CALLBACK)監聽音樂(le)播放(fang)。
7.wx.onBackgroundAudioPause(CALLBACK)監聽音(yin)樂(le)暫停。
8.wx.onBackgroundAudioStop(CALLBACK)監(jian)聽(ting)音樂停(ting)止(zhi)。
二.案(an)例