APlayer for Z-BlogPHP
		
			2017 年 04 月 20 日    
			分类: 开发日记
			48 条评论
			19309 ℃
		
	
	![share cover]()
Demo:
继 DPlayer 插件开发好后,再用了 3天 陆续把 APlayer 插件写了出来
然后由于各种事情,各种拖坑,结果... 一年后(懒癌发作,重度拖延症,还没够一年呢!233
代码和用法参考了 APlayer-Typecho-Plugin, 网易云音乐API 使用 NeteaseCloudMusicApi
使用方式
[aplayer url="http://xx/xxx.mp3" pic="http://xx/xxx.jpg" lrc="http://xx/xxx.lrc" autoplay="true"/]
Z-Blog应用中心:https://app.zblogcn.com/?id=1321
Github地址:https://github.com/fghrsh/APlayer_for_Z-BlogPHP
更新日志:
    2016年06月02日    V1.0
        * 项目开坑,实现 APlayer 加载
    2016年06月03日    V1.0
        * 基本完善,后台管理界面还没补上
    2016年09月18日    V1.1
        * 更新 APlayer 版本,修复若干BUG,自用中
    2017年04月19日    V1.2
        * 更新 APlayer 至最新版本
        + 新增 内置版 网易云音乐 API
        + 新增 网易云音乐 获取带翻译歌词
    2017年04月20日    V1.2
        + 新增 后台 管理界面
        + 新增 后台 管理界面 背景图片彩蛋
        * 正式在 Z-Blog 应用中心 和 GitHub 发布
    2017年04月21日    V1.3
        * 修复 部分逻辑问题导致的 BUG
        * 修复 低版本PHP(5.3) 兼容问题
        * 修复 某些主题后台 背景显示问题
        - 移除内置 API,需要自行部署可上 GitHub 下载
    2017年05月28日    V1.4
        + 优化 部分主题兼容问题
        * 美化 微调管理界面背景图片
        + 美化 格式化输出初始化 JSON
        * 修复 部分小细节导致的小 BUG
    2017年05月29日    V1.4
        * 修复 JSON 布尔值问题
    
    2017年06月14日    V1.4
        *  修复  低版本PHP(5.2) 兼容问题
APlayerOptions.push({
    "id": "cfcd208495d565ef66e7dff9f98764da",
    "narrow": false,
    "autoplay": true,
    "mutex": true,
    "theme": "#7addeb",
    "mode": "order",
    "preload": "auto",
    "music": {
        "url": "https://api.fghrsh.net/music/aplayer_music_api/?id=452649167.mp3",
        "title": "Rainbow Girl",
        "author": "染音若蔡",
        "pic": "//fp1.fghrsh.net/2017/04/20/tCAGs.jpg"
    },
    "showlrc": 0
});
APlayerOptions.push({
    "id": "c4ca4238a0b923820dcc509a6f75849b",
    "narrow": false,
    "autoplay": false,
    "mutex": true,
    "theme": "#7addeb",
    "mode": "random",
    "preload": "auto",
    "listmaxheight": "300px",
    "music": [
        {
            "title": "ツバサ",
            "author": "若山詩音",
            "url": "https://api.fghrsh.net/music/aplayer_music_api/?id=2149543657.mp3",
            "pic": "https://api.fghrsh.net/music/aplayer_music_api/?id=2149543657.jpg",
            "lrc": "https://api.fghrsh.net/music/aplayer_music_api/?id=2149543657.lrc2"
        }
    ],
    "showlrc": 3
});
    
        本文标题:APlayer for Z-BlogPHP
    
    
        本文链接:https://www.fghrsh.net/post/77.html
    
    
    
        版权声明:本文使用「署名-非商业性使用-相同方式共享 4.0 国际」创作共享协议,转载或使用请遵守署名协议。
    
  
	 
代码使用后谷歌游览器正常,但是用UC游览器和360游览器访问的话会无法播放