1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/gallery/lightbox/photo/photo.lightbox.gallery.component.html
2018-11-04 19:28:32 +01:00

30 lines
928 B
HTML

<div class="imgContainer" #imgContainer>
<img *ngIf="showThumbnail()"
[style.width.%]="imageSize.width"
[style.height.%]="imageSize.height"
[src]="thumbnailSrc"/>
<img *ngIf="gridMedia !== null && gridMedia.isPhoto() && loadMedia && photoSrc"
[style.width.%]="imageSize.width"
[style.height.%]="imageSize.height"
[src]="photoSrc"
(load)="onImageLoad()"
(error)="onImageError()"/>
<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>
</div>