update README

This commit is contained in:
DIYgod
2015-11-22 11:27:58 +08:00
parent d37e344e87
commit 1a4c0761b1
+2 -16
View File
@@ -40,32 +40,18 @@ And this is how the APlayer is initialized:
```
var ap = new APlayer({
element: document.getElementById('player1'),
narrow: false,
autoplay: true,
music: {
title: 'Preparation',
author: 'Hans Zimmer/Richard Harvey',
url: 'http://7xifn9.com1.z0.glb.clouddn.com/Preparation.mp3',
pic: 'Preparation.jpg'
pic: 'http://7xifn9.com1.z0.glb.clouddn.com/Preparation.jpg'
}
});
ap.init();
```
The following options are available:
```
{
element: document.getElementById('player1'),
autoplay: true,
music: {
title: 'Preparation',
author: 'Hans Zimmer/Richard Harvey',
url: 'http://7xifn9.com1.z0.glb.clouddn.com/Preparation.mp3',
pic: 'Preparation.jpg'
}
}
```
API
+ `ap.play()`