Media-only view

This commit is contained in:
lowcarbdev
2025-12-05 21:40:38 -07:00
parent c8b6b80966
commit a6ed709a99
9 changed files with 792 additions and 6 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
package internal
import (
"bytes"
"database/sql"
@@ -440,10 +439,10 @@ func isHEICContentType(contentType string) bool {
// needsVideoConversion checks if a video format needs conversion for browser compatibility
func needsVideoConversion(contentType string) bool {
ct := strings.ToLower(strings.TrimSpace(contentType))
// 3GP, 3G2, and other old mobile formats that browsers don't support
unsupportedFormats := []string{
"3gpp", "3gp", "3g2", "3gpp2",
"video/3gpp", "video/3gp", "video/3gpp2", "video/3g2",
"video/x-matroska", // MKV container (may have various codecs)
}
for _, format := range unsupportedFormats {