Commit 224b81d4 authored by liujiaxin's avatar liujiaxin

add video cover

parent 2372a29b
...@@ -98,12 +98,12 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni ...@@ -98,12 +98,12 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
this.isPlaying = false; this.isPlaying = false;
}; };
this.player.addEventListener("ended", () => { this.player.addEventListener('ended', () => {
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges(); this.changeDetectorRef.detectChanges();
this.refresh(); this.refresh();
}) })
this.initCover = this.data.contentObj.pic_id; this.initCover = !!this.data.contentObj.pic_id;
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges(); this.changeDetectorRef.detectChanges();
this.refresh(); 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