aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-04-20 10:23:07 +0200
committerChocobozzz <me@florianbigard.com>2022-04-20 10:23:07 +0200
commit4b7a20d88b11b2935aca0605c43b34bba745b40c (patch)
tree65650a1a2b51d9d93e588d6c6ae6fc4a4929ca1a /server/initializers
parent264903358d2501e1106d020c2804a477fbf77d24 (diff)
downloadPeerTube-4b7a20d88b11b2935aca0605c43b34bba745b40c.tar.gz
PeerTube-4b7a20d88b11b2935aca0605c43b34bba745b40c.tar.zst
PeerTube-4b7a20d88b11b2935aca0605c43b34bba745b40c.zip
Add missing video mime types
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index a4d8d8fe7..4656ccdbc 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -484,17 +484,25 @@ const MIMETYPES = {
484 MIMETYPE_EXT: { 484 MIMETYPE_EXT: {
485 'audio/mpeg': '.mp3', 485 'audio/mpeg': '.mp3',
486 'audio/mp3': '.mp3', 486 'audio/mp3': '.mp3',
487
487 'application/ogg': '.ogg', 488 'application/ogg': '.ogg',
488 'audio/ogg': '.ogg', 489 'audio/ogg': '.ogg',
490
489 'audio/x-ms-wma': '.wma', 491 'audio/x-ms-wma': '.wma',
490 'audio/wav': '.wav', 492 'audio/wav': '.wav',
491 'audio/x-wav': '.wav', 493 'audio/x-wav': '.wav',
494
492 'audio/x-flac': '.flac', 495 'audio/x-flac': '.flac',
493 'audio/flac': '.flac', 496 'audio/flac': '.flac',
497
498 'audio/vnd.dlna.adts': '.aac',
494 'audio/aac': '.aac', 499 'audio/aac': '.aac',
500
495 'audio/m4a': '.m4a', 501 'audio/m4a': '.m4a',
496 'audio/mp4': '.m4a', 502 'audio/mp4': '.m4a',
497 'audio/x-m4a': '.m4a', 503 'audio/x-m4a': '.m4a',
504
505 'audio/vnd.dolby.dd-raw': '.ac3',
498 'audio/ac3': '.ac3' 506 'audio/ac3': '.ac3'
499 }, 507 },
500 EXT_MIMETYPE: null as { [ id: string ]: string } 508 EXT_MIMETYPE: null as { [ id: string ]: string }
@@ -1033,6 +1041,8 @@ function buildVideoMimetypeExt () {
1033 // The standard video format used by many Sony and Panasonic HD camcorders. 1041 // The standard video format used by many Sony and Panasonic HD camcorders.
1034 // It is also used for storing high definition video on Blu-ray discs. 1042 // It is also used for storing high definition video on Blu-ray discs.
1035 'video/mp2t': '.mts', 1043 'video/mp2t': '.mts',
1044 'video/vnd.dlna.mpeg-tts': '.mts',
1045
1036 'video/m2ts': '.m2ts', 1046 'video/m2ts': '.m2ts',
1037 1047
1038 // Old formats reliant on MPEG-1/MPEG-2 1048 // Old formats reliant on MPEG-1/MPEG-2