@@ -18,6 +18,7 @@ UI 参考网易云音乐外链播放器
1818Screenshot
1919![ image] ( https://i.imgur.com/JDrJXCr.png )
2020![ image] ( https://i.imgur.com/eIRyqvT.png )
21+ ![ image] ( https://i.imgur.com/C9Cl1ad.png )
2122
2223## Install
2324
@@ -45,6 +46,7 @@ var ap = new APlayer({
4546 narrow: false ,
4647 autoplay: true ,
4748 showlrc: false ,
49+ theme: ' #e6d0b2' ,
4850 music: {
4951 title: ' Preparation' ,
5052 author: ' Hans Zimmer/Richard Harvey' ,
@@ -61,8 +63,9 @@ ap.init();
6163{
6264 element: document .getElementById (' player1' ), // Optional, player element
6365 narrow: false , // Optional, narrow style
64- autoplay: true , // Optional, autoplay, not supported by mobile browsers
66+ autoplay: true , // Optional, autoplay song(s) , not supported by mobile browsers
6567 showlrc: false , // Optional, show lrc
68+ theme: ' #e6d0b2' , // Optional, theme color, default: #b7daff
6669 music: { // Required, music info
6770 title: ' Preparation' , // Required, music title
6871 author: ' Hans Zimmer/Richard Harvey' , // Required, music author
@@ -131,6 +134,30 @@ Support multiple time tag, support three decimal second
131134
132135Option: ` showlrc: true `
133136
137+ ### With playlist
138+
139+ #### JS:
140+
141+ Option:
142+
143+ ``` JS
144+ music: [
145+ {
146+ title: ' ...' ,
147+ author: ' ...' ,
148+ url: ' ...' ,
149+ pic: ' ...'
150+ },
151+ {
152+ title: ' ...' ,
153+ author: ' ...' ,
154+ url: ' ...' ,
155+ pic: ' ...'
156+ },
157+ ...
158+ ]
159+ ```
160+
134161## Development
135162
136163```
@@ -153,7 +180,9 @@ $ gulp
153180- [x] 歌词展示
154181- [x] 默认选项
155182- [x] 移动端兼容性
156- - [ ] 播放列表
183+ - [x] 播放列表
184+ - [ ] 播放暂停按钮切换动画
185+ - [ ] 歌词滚动展示
157186
158187## Issues
159188
0 commit comments