小程序的歌曲链接地址为什么不可用

发布于 7 年前作者 chaoluo5683 次浏览最后编辑 7 年前来自 ask
  • 需求的场景描述(希望解决的问题)

wx.playBackgroundAudio({

      dataUrl: http://www.henduoge.com/p420798.html,

      success:function(res){

        console.log(res)

      }

    })

  },

  • 希望提供的能力

疑问:为什么我给的歌曲地址不可以用,是微信小程序有什么限制吗?麻烦说明下是什么原因!

1 回复
guiying85
guiying851 楼5 年前

这是网页链接  不直接的资源地址

歌曲给你提取出来了  

wx.playBackgroundAudio({

dataUrl: http://mp3.05935w.com/mp3/2018-10-30/1540892499.mp3,

success: function (res) {

console.log(res)

}

})