@@ -54,7 +54,7 @@ var option = {
5454 mutex: true , // Optional, pause other players when this player playing
5555 theme: ' #e6d0b2' , // Optional, theme color, default: #b7daff
5656 mode: ' random' , // Optional, play mode, can be `random` `single` `circulation`(loop) `order`(no loop), default: `circulation`
57- preload: ' metadata' , // Optional, the way to load music, can be 'none' 'metadata' 'auto', default: 'metadata' in Desktop, 'none' in mobile
57+ preload: ' metadata' , // Optional, the way to load music, can be 'none' 'metadata' 'auto', default: 'auto'
5858 listmaxheight: ' 513px' , // Optional, max height of play list
5959 music: { // Required, music info, see: ###With playlist
6060 title: ' Preparation' , // Required, music title
@@ -74,6 +74,12 @@ var option = {
7474+ ` ap.toggle() ` // Toggle between play and pause
7575+ ` ap.volume(percentage) ` // Set volume
7676+ ` ap.on(event, handler) ` // Event binding
77+ + ` ap.setMusic(index) ` // Switch music
78+ + ` ap.lrc ` // Lrc time and text
79+ + ` ap.playIndex ` // Current playing index
80+ + ` ap.audio ` // Return native video, most [ native api] ( http://www.w3schools.com/tags/ref_av_dom.asp ) are supported
81+ + ` dp.audio.currentTime ` // Returns the current playback position
82+ + Most [ native api] ( http://www.w3schools.com/tags/ref_av_dom.asp )
7783
7884#### Event binding
7985
0 commit comments