Commit 3cbefb9e authored by liujiaxin's avatar liujiaxin

feat: add audio record

parent 421d5468
......@@ -129,12 +129,19 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
console.log('play');
this.playIcon = 'pause';
this.isPlaying = true;
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
}
onPause() {
console.log('pause');
this.playIcon = 'play';
this.isPlaying = false;
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
}
onEnded() {
......@@ -142,6 +149,9 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
this.playIcon = 'play';
this.percent = 0;
this.isPlaying = false;
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
this.refresh();
}
onTimeUpdate(event) {
......
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