2016-05-13 14:27:00 +02:00
|
|
|
<div class="imgContainer" #imgContainer>
|
2018-03-30 15:30:30 -04:00
|
|
|
<img *ngIf="showThumbnail()"
|
|
|
|
[style.width.%]="imageSize.width"
|
|
|
|
[style.height.%]="imageSize.height"
|
2018-12-18 00:06:25 +01:00
|
|
|
[style.transform]="ImageTransform"
|
2018-11-02 10:40:09 +01:00
|
|
|
[src]="thumbnailSrc"/>
|
2016-05-13 14:27:00 +02:00
|
|
|
|
2018-12-23 15:04:52 +01:00
|
|
|
<img *ngIf="gridMedia !== null && gridMedia.isPhoto() && photoSrc"
|
2017-07-15 23:54:17 +02:00
|
|
|
[style.width.%]="imageSize.width"
|
|
|
|
[style.height.%]="imageSize.height"
|
2018-12-18 00:06:25 +01:00
|
|
|
[style.transform]="ImageTransform"
|
2018-11-02 10:40:09 +01:00
|
|
|
[src]="photoSrc"
|
2018-12-18 00:06:25 +01:00
|
|
|
[alt]="gridMedia.media.name"
|
2017-07-15 23:54:17 +02:00
|
|
|
(load)="onImageLoad()"
|
|
|
|
(error)="onImageError()"/>
|
2017-03-25 21:59:30 +01:00
|
|
|
|
2018-12-23 15:04:52 +01:00
|
|
|
<video *ngIf="gridMedia !== null && gridMedia.isVideo() && loadMedia"
|
2018-11-04 19:28:32 +01:00
|
|
|
[style.width.%]="imageSize.width"
|
|
|
|
[style.height.%]="imageSize.height"
|
2018-11-11 19:22:46 +01:00
|
|
|
(loadstart)="onImageLoad()"
|
2018-11-04 19:28:32 +01:00
|
|
|
autoplay
|
2018-11-11 19:22:46 +01:00
|
|
|
(error)="onImageError()"
|
2018-12-23 15:04:52 +01:00
|
|
|
(timeupdate)="onVideoProgress()"
|
|
|
|
#video>
|
2018-11-25 15:22:07 +01:00
|
|
|
<source [src]="gridMedia.getPhotoPath()" type="{{getVideoType()}}">
|
2018-11-04 19:28:32 +01:00
|
|
|
</video>
|
|
|
|
|
2016-05-13 14:27:00 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|