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-11-02 10:40:09 +01:00
|
|
|
[src]="thumbnailSrc"/>
|
2016-05-13 14:27:00 +02:00
|
|
|
|
2018-11-04 19:28:32 +01:00
|
|
|
<img *ngIf="gridMedia !== null && gridMedia.isPhoto() && loadMedia && photoSrc"
|
2017-07-15 23:54:17 +02:00
|
|
|
[style.width.%]="imageSize.width"
|
|
|
|
[style.height.%]="imageSize.height"
|
2018-11-02 10:40:09 +01:00
|
|
|
[src]="photoSrc"
|
2017-07-15 23:54:17 +02:00
|
|
|
(load)="onImageLoad()"
|
|
|
|
(error)="onImageError()"/>
|
2017-03-25 21:59:30 +01:00
|
|
|
|
2018-11-04 19:28:32 +01:00
|
|
|
<video *ngIf="gridMedia !== null && gridMedia.isVideo() && loadMedia"
|
|
|
|
[style.width.%]="imageSize.width"
|
|
|
|
[style.height.%]="imageSize.height"
|
|
|
|
(loadeddata)="logevent($event)"
|
|
|
|
(loadedmetadata)="logevent($event)"
|
|
|
|
(durationchange)="logevent($event)"
|
|
|
|
(loadstart)="logevent($event)"
|
|
|
|
autoplay
|
|
|
|
controls
|
|
|
|
(error)="onImageError()">
|
|
|
|
<source [src]="gridMedia.getPhotoPath()" type="video/mp4">
|
|
|
|
</video>
|
|
|
|
|
2016-05-13 14:27:00 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|