Commit 02864e65 authored by liujiaxin's avatar liujiaxin

111ss

parent c8a7f171
...@@ -215,11 +215,17 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -215,11 +215,17 @@ export class PlayComponent implements OnInit, OnDestroy {
item.state = ''; item.state = '';
}, 1500); }, 1500);
} }
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
} }
onHandleZoomIn(e) { onHandleZoomIn(e) {
e.stopPropagation(); e.stopPropagation();
this.zoomIn = !this.zoomIn; this.zoomIn = !this.zoomIn;
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
} }
playAudio(option, e) { playAudio(option, e) {
...@@ -227,10 +233,16 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -227,10 +233,16 @@ export class PlayComponent implements OnInit, OnDestroy {
this.optionAudio.src = option.audio_id; this.optionAudio.src = option.audio_id;
// this.optionAudio.load(); // this.optionAudio.load();
this.optionAudio.play(); this.optionAudio.play();
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
} }
currentQuestionStatus() { currentQuestionStatus() {
const sts = this.playerState.asObservable(); const sts = this.playerState.asObservable();
console.log(this.playerState.getValue().isPlaying); console.log(this.playerState.getValue().isPlaying);
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
} }
playQuestionAudio(e) { playQuestionAudio(e) {
e.stopPropagation(); e.stopPropagation();
...@@ -239,5 +251,8 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -239,5 +251,8 @@ export class PlayComponent implements OnInit, OnDestroy {
} else { } else {
this.questionAudio.pause(); this.questionAudio.pause();
} }
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
} }
} }
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