Is this possible?
Code: Select all
<p-carousel [value]="post.content" [numVisible]="1" [numScroll]="1" [circular]="true">
<ng-template let-content pTemplate="item">
<video *ngIf="content.contentType===ContentType.VIDEO" class="video" width="100%" height="auto" playsinline controls controlsList="nodownload" >
<source [src]="getContentLink(post.user.id,post.id,content.fileName)" type="video/mp4">
</video>
<img height="auto" width="100%" *ngIf="content.contentType===ContentType.PHOTO" [src]="getContentLink(post.user.id,post.id,content.fileName)"/>
</ng-template>
</p-carousel>