Skip to content

Commit

Permalink
fix replay audio after audio stop on alipay platform
Browse files Browse the repository at this point in the history
  • Loading branch information
PP committed Nov 14, 2019
1 parent 4492dd1 commit 6acf75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/engine/Audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ if (Audio) {

stop () {
if (!this._element) return;
this._element.pause();
this._element.seek(0);
this._element.stop();
this._unbindEnded();
this.emit('stop');
this._state = Audio.State.STOPPED;
Expand Down

0 comments on commit 6acf75c

Please sign in to comment.