博客园站长
这是人类成长进步中记录的每一时刻
  const backgroundAudioManager = wx.getBackgroundAudioManager()
    backgroundAudioManager.title = '语音提醒'
    backgroundAudioManager.epname = '语音提醒'
    backgroundAudioManager.singer = ' '
    backgroundAudioManager.coverImgUrl = ''    
      backgroundAudioManager.src = 'https://xxxxxxxxxxxxxx.mp3';

  https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.getBackgroundAudioManager.html

 

基础库 1.2.0 开始支持

posted on 2019-11-14 15:31  dm3344  阅读(1549)  评论(0编辑  收藏  举报