Commit 502ac4fe authored by liujiangnan's avatar liujiangnan

fix: 不自动播放问题

parent dc6d2f4b
...@@ -2082,12 +2082,8 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -2082,12 +2082,8 @@ export class PlayComponent implements OnInit, OnDestroy {
}; };
audio.hasEndedEvent = true; audio.hasEndedEvent = true;
} }
setTimeout(() => { audio.load();
console.log('========1111========='+this.answerIdIndex); audio.play();
audio.load();
audio.play();
console.log('========2222========='+this.answerIdIndex);
}, this.delayPicSoundShowTime);
} else { } else {
this.showPicSound(); this.showPicSound();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment