DIYgod / APlayer

:lollipop: Wow, such a beautiful HTML5 music player
http://aplayer.js.org
MIT License
7.31k stars 1.03k forks source link

Can't autoplay when setting multiple autoplay for true #155

Closed metowolf closed 6 years ago

metowolf commented 7 years ago

The steps to reproduce.

Modify https://github.com/MoePlayer/APlayer/blob/master/demo/demo.js#L42

autoplay: false,

to

autoplay: true,

Error information

Demo.html:1 Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). https://goo.gl/LdLk22
Demo.html:1 Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause(). https://goo.gl/LdLk22

Screenshot

2017-09-14 22 25 43

ericdrobinson commented 6 years ago

We see this as well. You can read about the source of this issue at the shortlink reported in the exception in the console as seen above or simply click here.

DIYgod commented 6 years ago

Done. e2e8884a45229b23233932f554f399bd2ea9d191 cf5972879a27459445aaf730f7777c9400667881 fb4211a0b050a065f1ecc3e5eb37b97f0bd96ffc