Commit dc6d2f4b authored by liujiangnan's avatar liujiangnan

debug: 添加日志

parent 52a702ee
...@@ -2069,24 +2069,25 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -2069,24 +2069,25 @@ export class PlayComponent implements OnInit, OnDestroy {
console.log('answerIdIndex: ', this.answerIdIndex); console.log('answerIdIndex: ', this.answerIdIndex);
console.log('audio: ', audio) console.log('audio: ', audio)
audio = new Audio(); // audio = new Audio();
audio.play(); // audio.play();
audio.pause(); // audio.pause();
audio.src = curData.audio_url; // audio.src = curData.audio_url;
if (!audio.hasEndedEvent) { if (!audio.hasEndedEvent) {
audio.onended = () => { audio.onended = () => {
console.log(' in ended') console.log(' in ended')
setTimeout(() => {
this.showPicSound(); this.showPicSound();
}, this.delayPicSoundShowTime);
}; };
audio.hasEndedEvent = true; audio.hasEndedEvent = true;
} }
setTimeout(() => {
console.log('========1111========='+this.answerIdIndex);
audio.load(); audio.load();
audio.play(); 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