1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00
pigallery2/frontend/app/gallery/lightbox/media/media.lightbox.gallery.component.html

28 lines
837 B
HTML
Raw Normal View History

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()"/>
2018-11-11 19:22:46 +01:00
<video #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()"
(timeupdate)="onVideoProgress()" >
2018-11-04 19:28:32 +01:00
<source [src]="gridMedia.getPhotoPath()" type="video/mp4">
</video>
2016-05-13 14:27:00 +02:00
</div>