mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fix fireball/issues/7369 (#2741)
This commit is contained in:
@@ -201,7 +201,7 @@ Audio.State = {
|
||||
};
|
||||
|
||||
proto.resume = function () {
|
||||
if (!this._element || this._element.currentTime === 0) return;
|
||||
if (!this._element || this._state === Audio.State.PLAYING) return;
|
||||
this._bindEnded();
|
||||
this._element.play();
|
||||
this.emit('resume');
|
||||
|
||||
Reference in New Issue
Block a user