improve mobile compatibility: Can't set currentTime before loadedmetadata
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user