Finished implementing video support

This commit is contained in:
2026-04-10 09:39:39 +02:00
parent 2bcb6adbb3
commit 67918644e0
7 changed files with 41 additions and 24 deletions

View File

@@ -17,7 +17,11 @@
@if (file.type == "image") {
<img [src]="file.path" style="width: 100%; height: 100%; max-height: 300px; object-fit: cover; border-radius: 25px"/>
} @else if (file.type == "video") {
<video-player [src]="file.path"></video-player>
@if (file.extraMetaData && Object.keys(file.extraMetaData).length > 0) {
<video-player maxHeight="250px" maxWidth="250px" [src]="file.path" [thumbnailOverwrite]="file.extraMetaData['thumbnailMetaData']"></video-player>
} @else {
<video-player maxHeight="250px" maxWidth="250px" [src]="file.path"></video-player>
}
}
}
</masonry>