Commit 6f580157 authored by liujiaxin's avatar liujiaxin

add video cover

parent 224b81d4
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#videoNode (click)="playVideo()"> #videoNode (click)="playVideo()">
</video> </video>
<div class="video-cover" *ngIf="initCover && !isPlaying"> <div class="video-cover" *ngIf="initCover && !isPlaying">
<img *ngIf="initCover" [src]="initCover" <img *ngIf="initCover" [src]="this.data.contentObj.pic_id"
style="width: 100%; style="width: 100%;
height: 100%; height: 100%;
object-fit: contain; object-fit: contain;
......
...@@ -44,7 +44,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni ...@@ -44,7 +44,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
// 获取数据 // 获取数据
const getData = ( window as any).courseware.getData; const getData = ( window as any).courseware.getData;
getData((data) => { getData((data) => {
console.log(333, data); console.log(4444, data);
if (data && typeof data === 'object') { if (data && typeof data === 'object') {
this.data = data; this.data = data;
} }
......
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