Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow importing webm video files #358

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ enum class PhotoType(
JPEG(2, "image/jpeg"),
GIF(3, "image/gif"),
MP4(4, "video/mp4"),
MPEG(5, "video/mpeg");
MPEG(5, "video/mpeg"),
WEBM(6, "video/webm");

val isVideo: Boolean
get() = when (value) {
4, 5 -> true
4, 5, 6 -> true
else -> false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class PhotoRepository @Inject constructor(
PhotoType.GIF.mimeType -> PhotoType.GIF
PhotoType.MP4.mimeType -> PhotoType.MP4
PhotoType.MPEG.mimeType -> PhotoType.MPEG
PhotoType.WEBM.mimeType -> PhotoType.WEBM
else -> return String.empty
}

Expand Down