Added option to show video thumbnails

This commit is contained in:
M66B
2024-01-24 18:10:33 +01:00
parent 74eef877d5
commit 725727af86
7 changed files with 43 additions and 3 deletions

View File

@@ -117,6 +117,11 @@ public class EntityAttachment {
return ImageHelper.isImage(getMimeType());
}
boolean isVideo() {
String type = getMimeType();
return (type != null && type.startsWith("video/"));
}
boolean isAudio() {
String type = getMimeType();
return (type != null && type.startsWith("audio/"));