diff options
author | 2024-07-15 14:24:53 +0000 | |
---|---|---|
committer | 2024-07-15 15:24:53 +0100 | |
commit | de45c0be60e453e69263f5b32ab2ce2661dc74ca (patch) | |
tree | dd3c2196ea3a4dad5cd750d7310b801f05b95520 /internal/media/types.go | |
parent | [feature/frontend] Add player for audio files; use thumbnail for `poster` (#3... (diff) | |
download | gotosocial-de45c0be60e453e69263f5b32ab2ce2661dc74ca.tar.xz |
[feature] more filetype support! (#3107)
* add more supported file types to our media processor that ffmpeg supports, update supported mime type lists
* add code comments to the supported mime types slice
* don't check for zero value string, just parse
* remove some unneeded consts which make the code a bit harder to read
* fix test expected instance media mime types, use compact ffprobe json, simple media processing by type
* final tweaks to media processing code
* don't use safe divide where we don't need to
Diffstat (limited to 'internal/media/types.go')
-rw-r--r-- | internal/media/types.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/internal/media/types.go b/internal/media/types.go index 2d19b84cc..9631a15bd 100644 --- a/internal/media/types.go +++ b/internal/media/types.go @@ -23,27 +23,6 @@ import ( "time" ) -// mime consts -const ( - mimeImage = "image" - mimeVideo = "video" - - mimeJpeg = "jpeg" - mimeImageJpeg = mimeImage + "/" + mimeJpeg - - mimeGif = "gif" - mimeImageGif = mimeImage + "/" + mimeGif - - mimePng = "png" - mimeImagePng = mimeImage + "/" + mimePng - - mimeWebp = "webp" - mimeImageWebp = mimeImage + "/" + mimeWebp - - mimeMp4 = "mp4" - mimeVideoMp4 = mimeVideo + "/" + mimeMp4 -) - type Size string const ( |