Started implementing video support.
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
@for (file of message.files; track file) {
|
||||
@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>
|
||||
}
|
||||
}
|
||||
</masonry>
|
||||
|
||||
Reference in New Issue
Block a user