蓝汇云音乐解析API对接aplayer播放器

介绍:

音乐解析API对接aplayer播放器

TP5开发的音乐解析API对接aplayer播放器

支持酷狗音乐,网易云音乐,QQ音乐的歌单解析API

酷狗歌单说明酷狗音乐不能解析到平台里的自建歌单

现在需要在程序里注册并且在添加歌单音乐请求示例

http://你的域名/index/music/index?id=2205345458

<div id="player" class="aplayer"></div>                     
<link rel="stylesheet" href="https://cdn.bootcss.com/aplayer/1.10.1/APlayer.min.css" />
<script src="https://cdn.bootcss.com/jquery/3.5.0/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/aplayer/1.10.1/APlayer.min.js"></script>
<script>
      $(function(){
      $.ajax({
      url:"http://www.dkewl.com/index/music/index?id=2205345458", //把这里的链接替换你的歌单解析api
      success:function(e){
      var a=new APlayer({
      element:document.getElementById("aplayer"),
      autoplay:true,
      fixed:true,
      loop:"all",
      order:"random",
      listFolded:true,
      showlrc:3,
      theme:"#FFC0CB",
      listmaxheight:"200px",
      music:eval(e)});
      window.aplayers||(window.aplayers=[]),
      window.aplayers.push(a)}})})
</script>

图片:

20220322ypmv1c2w1uf.jpg

资源下载
下载价格免费
原文链接:https://mbt.dbdy5.com/2026/01/21/%e8%93%9d%e6%b1%87%e4%ba%91%e9%9f%b3%e4%b9%90%e8%a7%a3%e6%9e%90api%e5%af%b9%e6%8e%a5aplayer%e6%92%ad%e6%94%be%e5%99%a8/,转载请注明出处。
0

评论0

没有账号?注册  忘记密码?