From 1a4c0761b11ac6e4ad3684195f772aa2ecb132af Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sun, 22 Nov 2015 11:27:58 +0800 Subject: [PATCH] update README --- README.md | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 09b3a74..ade0a5e 100644 --- a/README.md +++ b/README.md @@ -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()`