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

28 lines
846 B
HTML
Raw Normal View History

2016-05-13 20:27:00 +08:00
<div class="imgContainer" #imgContainer>
2018-03-31 03:30:30 +08:00
<img *ngIf="showThumbnail()"
[style.width.%]="imageSize.width"
[style.height.%]="imageSize.height"
2018-11-02 17:40:09 +08:00
[src]="thumbnailSrc"/>
2016-05-13 20:27:00 +08:00
2018-11-05 02:28:32 +08:00
<img *ngIf="gridMedia !== null && gridMedia.isPhoto() && loadMedia && photoSrc"
2017-07-16 05:54:17 +08:00
[style.width.%]="imageSize.width"
[style.height.%]="imageSize.height"
2018-11-02 17:40:09 +08:00
[src]="photoSrc"
2017-07-16 05:54:17 +08:00
(load)="onImageLoad()"
(error)="onImageError()"/>
2018-11-12 02:22:46 +08:00
<video #video
*ngIf="gridMedia !== null && gridMedia.isVideo() && loadMedia"
2018-11-05 02:28:32 +08:00
[style.width.%]="imageSize.width"
[style.height.%]="imageSize.height"
2018-11-12 02:22:46 +08:00
(loadstart)="onImageLoad()"
2018-11-05 02:28:32 +08:00
autoplay
2018-11-12 02:22:46 +08:00
(error)="onImageError()"
(timeupdate)="onVideoProgress()" >
<source [src]="gridMedia.getPhotoPath()" type="{{getVideoType()}}">
2018-11-05 02:28:32 +08:00
</video>
2016-05-13 20:27:00 +08:00
</div>