improve mobile compatibility: Can't set currentTime before loadedmetadata
This commit is contained in:
parent
d50f90380b
commit
58df0cd151
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "aplayer",
|
||||
"version": "1.3.5",
|
||||
"version": "1.3.6",
|
||||
"description": "Wow, such a beautiful html5 music player",
|
||||
"main": "dist/APlayer.min.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -314,7 +314,6 @@
|
|||
this.audio = document.createElement("audio");
|
||||
this.audio.src = this.music.url;
|
||||
this.audio.preload = this.isMobile ? 'none' : 'metadata';
|
||||
this.audio.currentTime = 0;
|
||||
|
||||
// show audio time
|
||||
var _self = this;
|
||||
|
|
|
|||
Loading…
Reference in New Issue