mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 09:32:38 +08:00
Merge branch 'v1.9' of github.com:cocos-creator/engine into v1.9
This commit is contained in:
@@ -199,9 +199,17 @@ Audio.State = {
|
||||
|
||||
proto.stop = function () {
|
||||
if (!this._element) return;
|
||||
try {
|
||||
this._element.currentTime = 0;
|
||||
} catch (error) {}
|
||||
if (CC_WECHATGAME) {
|
||||
setTimeout(function () {
|
||||
try {
|
||||
this._element.currentTime = 0;
|
||||
} catch (error) {}
|
||||
}.bind(this), 0);
|
||||
} else {
|
||||
try {
|
||||
this._element.currentTime = 0;
|
||||
} catch (error) {}
|
||||
}
|
||||
this._element.pause();
|
||||
// remove touchPlayList
|
||||
for (var i=0; i<touchPlayList.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user