mirror of https://github.com/Chocobozzz/PeerTube
Add missing video mime types
parent
264903358d
commit
4b7a20d88b
|
@ -484,17 +484,25 @@ const MIMETYPES = {
|
||||||
MIMETYPE_EXT: {
|
MIMETYPE_EXT: {
|
||||||
'audio/mpeg': '.mp3',
|
'audio/mpeg': '.mp3',
|
||||||
'audio/mp3': '.mp3',
|
'audio/mp3': '.mp3',
|
||||||
|
|
||||||
'application/ogg': '.ogg',
|
'application/ogg': '.ogg',
|
||||||
'audio/ogg': '.ogg',
|
'audio/ogg': '.ogg',
|
||||||
|
|
||||||
'audio/x-ms-wma': '.wma',
|
'audio/x-ms-wma': '.wma',
|
||||||
'audio/wav': '.wav',
|
'audio/wav': '.wav',
|
||||||
'audio/x-wav': '.wav',
|
'audio/x-wav': '.wav',
|
||||||
|
|
||||||
'audio/x-flac': '.flac',
|
'audio/x-flac': '.flac',
|
||||||
'audio/flac': '.flac',
|
'audio/flac': '.flac',
|
||||||
|
|
||||||
|
'audio/vnd.dlna.adts': '.aac',
|
||||||
'audio/aac': '.aac',
|
'audio/aac': '.aac',
|
||||||
|
|
||||||
'audio/m4a': '.m4a',
|
'audio/m4a': '.m4a',
|
||||||
'audio/mp4': '.m4a',
|
'audio/mp4': '.m4a',
|
||||||
'audio/x-m4a': '.m4a',
|
'audio/x-m4a': '.m4a',
|
||||||
|
|
||||||
|
'audio/vnd.dolby.dd-raw': '.ac3',
|
||||||
'audio/ac3': '.ac3'
|
'audio/ac3': '.ac3'
|
||||||
},
|
},
|
||||||
EXT_MIMETYPE: null as { [ id: string ]: string }
|
EXT_MIMETYPE: null as { [ id: string ]: string }
|
||||||
|
@ -1033,6 +1041,8 @@ function buildVideoMimetypeExt () {
|
||||||
// The standard video format used by many Sony and Panasonic HD camcorders.
|
// The standard video format used by many Sony and Panasonic HD camcorders.
|
||||||
// It is also used for storing high definition video on Blu-ray discs.
|
// It is also used for storing high definition video on Blu-ray discs.
|
||||||
'video/mp2t': '.mts',
|
'video/mp2t': '.mts',
|
||||||
|
'video/vnd.dlna.mpeg-tts': '.mts',
|
||||||
|
|
||||||
'video/m2ts': '.m2ts',
|
'video/m2ts': '.m2ts',
|
||||||
|
|
||||||
// Old formats reliant on MPEG-1/MPEG-2
|
// Old formats reliant on MPEG-1/MPEG-2
|
||||||
|
|
Loading…
Reference in New Issue