diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-08-17 19:01:36 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-08-18 09:54:05 +0200 |
commit | b056afe0ac48a360e47481327d341198d4e9d391 (patch) | |
tree | 01b71d6f7e9bb2a1d29c2d1fce37f6cbbb8fe034 /server/initializers/constants.ts | |
parent | 7ed1edbbe4ffbef28093e4f5630751cb652814e4 (diff) | |
download | PeerTube-b056afe0ac48a360e47481327d341198d4e9d391.tar.gz PeerTube-b056afe0ac48a360e47481327d341198d4e9d391.tar.zst PeerTube-b056afe0ac48a360e47481327d341198d4e9d391.zip |
add .ac3, .aac audio and more video extensions
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 691d29283..2f9a750a5 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -417,7 +417,9 @@ const MIMETYPES = { | |||
417 | 'audio/x-ms-wma': '.wma', | 417 | 'audio/x-ms-wma': '.wma', |
418 | 'audio/wav': '.wav', | 418 | 'audio/wav': '.wav', |
419 | 'audio/x-flac': '.flac', | 419 | 'audio/x-flac': '.flac', |
420 | 'audio/flac': '.flac' | 420 | 'audio/flac': '.flac', |
421 | '‎audio/aac': '.aac', | ||
422 | 'audio/ac3': '.ac3' | ||
421 | }, | 423 | }, |
422 | EXT_MIMETYPE: null as { [ id: string ]: string } | 424 | EXT_MIMETYPE: null as { [ id: string ]: string } |
423 | }, | 425 | }, |
@@ -841,7 +843,7 @@ function buildVideoMimetypeExt () { | |||
841 | 'video/x-matroska': '.mkv', | 843 | 'video/x-matroska': '.mkv', |
842 | 844 | ||
843 | // Developed by Apple | 845 | // Developed by Apple |
844 | 'video/quicktime': '.mov', // often used as output format by editing software | 846 | 'video/quicktime': [ '.mov', '.qt', '.mqv' ], // often used as output format by editing software |
845 | 'video/x-m4v': '.m4v', | 847 | 'video/x-m4v': '.m4v', |
846 | 'video/m4v': '.m4v', | 848 | 'video/m4v': '.m4v', |
847 | 849 | ||
@@ -856,8 +858,8 @@ function buildVideoMimetypeExt () { | |||
856 | 858 | ||
857 | // Developed by 3GPP | 859 | // Developed by 3GPP |
858 | // common video formats for cell phones | 860 | // common video formats for cell phones |
859 | 'video/3gpp': '.3gp', | 861 | 'video/3gpp': [ '.3gp', '.3gpp' ], |
860 | 'video/3gpp2': '.3g2', | 862 | 'video/3gpp2': [ '.3g2', '.3gpp2' ], |
861 | 863 | ||
862 | // Developed by FFmpeg/Mplayer | 864 | // Developed by FFmpeg/Mplayer |
863 | 'application/x-nut': '.nut', | 865 | 'application/x-nut': '.nut', |
@@ -870,7 +872,8 @@ function buildVideoMimetypeExt () { | |||
870 | // Old formats reliant on MPEG-1/MPEG-2 | 872 | // Old formats reliant on MPEG-1/MPEG-2 |
871 | 'video/mpv': '.mpv', | 873 | 'video/mpv': '.mpv', |
872 | 'video/mpeg2': '.m2v', | 874 | 'video/mpeg2': '.m2v', |
873 | 'video/mpeg': '.mpeg', | 875 | 'video/mpeg': [ '.m1v', '.mpg', '.mpe', '.mpeg', '.vob' ], |
876 | 'video/dvd': '.vob', | ||
874 | 877 | ||
875 | // Could be anything | 878 | // Could be anything |
876 | 'application/octet-stream': null, | 879 | 'application/octet-stream': null, |