帮忙看下音频问题啊,开始后,点击屏幕任意位置会重置时间

1.6.2版本
我发现在CCAudio.js文件里 有个play方法,里面有个不知道干什么用的东西
touchBinded
他会绑定我的touch事件,然后我点击屏幕的时候,时间就重置了
完全不懂这部分代码是干什么用的
望大神帮忙解答
谢谢

代码如下:

proto.play = function () {

    if (!this._element) return;
    this._bindEnded();
    this._element.play();
    this.emit('play');
    this._state = Audio.State.PLAYING;

    if (this._audioType === Audio.Type.DOM && this._element.paused) {
        touchPlayList.push({ instance: this, offset: 0, audio: this._element });
    }

    if (touchBinded) return;
    touchBinded = true;

    // Listen to the touchstart body event and play the audio when necessary.
    cc.game.canvas.addEventListener('touchstart', function () {
        var item;
        while (item = touchPlayList.pop()) {
            item.audio.play(item.offset);
        }
    });
};

升级下creator版本吧,1.6.2没有维护了,移动端浏览器需要触摸后,才会播放声音。

谢谢 我明白了

我们这边有别的需求不点击浏览器也要播放

我们自行处理下吧