X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fconstants.ts;h=4656ccdbcdf661f86c7d3e2d0defad3a616d5750;hb=40fa53ac9900fb140027bd2ed03f3e90dde1b4bd;hp=9afbc5aeaf939d6c4382c4338a4e244d2a770969;hpb=dfbcefc20dc64f0814b1f2e8e782a4ea1bd24db2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 9afbc5aea..4656ccdbc 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -367,7 +367,7 @@ const CONSTRAINTS_FIELDS = { const VIEW_LIFETIME = { VIEW: CONFIG.VIEWS.VIDEOS.IP_VIEW_EXPIRATION, - VIEWER_COUNTER: 60000 * 5, // 5 minutes + VIEWER_COUNTER: 60000 * 1, // 1 minute VIEWER_STATS: 60000 * 60 // 1 hour } @@ -484,17 +484,25 @@ const MIMETYPES = { MIMETYPE_EXT: { 'audio/mpeg': '.mp3', 'audio/mp3': '.mp3', + 'application/ogg': '.ogg', 'audio/ogg': '.ogg', + 'audio/x-ms-wma': '.wma', 'audio/wav': '.wav', 'audio/x-wav': '.wav', + 'audio/x-flac': '.flac', 'audio/flac': '.flac', + + 'audio/vnd.dlna.adts': '.aac', 'audio/aac': '.aac', + 'audio/m4a': '.m4a', 'audio/mp4': '.m4a', 'audio/x-m4a': '.m4a', + + 'audio/vnd.dolby.dd-raw': '.ac3', 'audio/ac3': '.ac3' }, 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. // It is also used for storing high definition video on Blu-ray discs. 'video/mp2t': '.mts', + 'video/vnd.dlna.mpeg-tts': '.mts', + 'video/m2ts': '.m2ts', // Old formats reliant on MPEG-1/MPEG-2