improve mobile compatibility: Can't set currentTime before loadedmetadata

This commit is contained in:
DIYgod 2016-01-19 00:43:47 +08:00
parent d50f90380b
commit 58df0cd151
3 changed files with 2 additions and 3 deletions

2
dist/APlayer.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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": {

View File

@ -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;