From: Paul Hänsch Date: Thu, 12 Nov 2020 11:13:17 +0000 (+0100) Subject: mime types for streaming formats X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=147c7222675fd027873faa7e921e2679d99e71cc;p=cgilite mime types for streaming formats --- diff --git a/file.sh b/file.sh index 51ec245..04a8ef6 100755 --- a/file.sh +++ b/file.sh @@ -32,9 +32,14 @@ file_type(){ svg) printf 'image/svg+xml';; gif) printf 'image/gif';; webm) printf 'video/webm';; - mp4) printf 'video/mp4';; + mp4|m4v) printf 'video/mp4';; + m4a) printf 'audio/mp4';; ogg) printf 'audio/ogg';; xml) printf 'application/xml';; + m3u8) printf 'application/x-mpegURL';; + ts) printf 'video/MP2T';; + mpd) printf 'application/dash+xml';; + m4s) printf 'video/iso.segment';; *) printf 'application/octet-stream';; esac }