From b7085c713220c9c5a96c9bb77330c2ba6ae9274e Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 24 Dec 2020 18:02:04 +0100 Subject: add support for 1440p (Quad HD/QHD/WQHD) videos --- server/tests/api/check-params/config.ts | 2 ++ server/tests/api/live/live-constraints.ts | 1 + server/tests/api/live/live-permanent.ts | 2 ++ server/tests/api/live/live-save-replay.ts | 1 + server/tests/api/server/config.ts | 4 ++++ server/tests/api/server/stats.ts | 1 + server/tests/api/videos/audio-only.ts | 1 + server/tests/api/videos/video-hls.ts | 1 + 8 files changed, 13 insertions(+) (limited to 'server/tests/api') diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index fab440fc5..e36cdeab2 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts @@ -92,6 +92,7 @@ describe('Test config API validators', function () { '480p': true, '720p': false, '1080p': false, + '1440p': false, '2160p': false }, webtorrent: { @@ -118,6 +119,7 @@ describe('Test config API validators', function () { '480p': true, '720p': true, '1080p': true, + '1440p': true, '2160p': true } } diff --git a/server/tests/api/live/live-constraints.ts b/server/tests/api/live/live-constraints.ts index 257673b66..1c60a7c76 100644 --- a/server/tests/api/live/live-constraints.ts +++ b/server/tests/api/live/live-constraints.ts @@ -179,6 +179,7 @@ describe('Test live constraints', function () { '480p': true, '720p': true, '1080p': true, + '1440p': true, '2160p': true } } diff --git a/server/tests/api/live/live-permanent.ts b/server/tests/api/live/live-permanent.ts index 1128e993c..a5bda009f 100644 --- a/server/tests/api/live/live-permanent.ts +++ b/server/tests/api/live/live-permanent.ts @@ -75,6 +75,7 @@ describe('Permenant live', function () { '480p': true, '720p': true, '1080p': true, + '1440p': true, '2160p': true } } @@ -164,6 +165,7 @@ describe('Permenant live', function () { '480p': false, '720p': false, '1080p': false, + '1440p': false, '2160p': false } } diff --git a/server/tests/api/live/live-save-replay.ts b/server/tests/api/live/live-save-replay.ts index 35fe4e7bd..757e11845 100644 --- a/server/tests/api/live/live-save-replay.ts +++ b/server/tests/api/live/live-save-replay.ts @@ -99,6 +99,7 @@ describe('Save replay setting', function () { '480p': true, '720p': true, '1080p': true, + '1440p': true, '2160p': true } } diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index bfaad3688..af25f4800 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts @@ -75,6 +75,7 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) { expect(data.transcoding.resolutions['480p']).to.be.true expect(data.transcoding.resolutions['720p']).to.be.true expect(data.transcoding.resolutions['1080p']).to.be.true + expect(data.transcoding.resolutions['1440p']).to.be.true expect(data.transcoding.resolutions['2160p']).to.be.true expect(data.transcoding.webtorrent.enabled).to.be.true expect(data.transcoding.hls.enabled).to.be.true @@ -91,6 +92,7 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) { expect(data.live.transcoding.resolutions['480p']).to.be.false expect(data.live.transcoding.resolutions['720p']).to.be.false expect(data.live.transcoding.resolutions['1080p']).to.be.false + expect(data.live.transcoding.resolutions['1440p']).to.be.false expect(data.live.transcoding.resolutions['2160p']).to.be.false expect(data.import.videos.http.enabled).to.be.true @@ -322,6 +324,7 @@ describe('Test config', function () { '480p': true, '720p': false, '1080p': false, + '1440p': false, '2160p': false }, webtorrent: { @@ -346,6 +349,7 @@ describe('Test config', function () { '480p': true, '720p': true, '1080p': true, + '1440p': true, '2160p': true } } diff --git a/server/tests/api/server/stats.ts b/server/tests/api/server/stats.ts index 6fbf32186..82065e770 100644 --- a/server/tests/api/server/stats.ts +++ b/server/tests/api/server/stats.ts @@ -153,6 +153,7 @@ describe('Test stats (excluding redundancy)', function () { '480p': false, '720p': false, '1080p': false, + '1440p': false, '2160p': false } } diff --git a/server/tests/api/videos/audio-only.ts b/server/tests/api/videos/audio-only.ts index 294a00112..7ddbd5cd9 100644 --- a/server/tests/api/videos/audio-only.ts +++ b/server/tests/api/videos/audio-only.ts @@ -36,6 +36,7 @@ describe('Test audio only video transcoding', function () { '480p': false, '720p': false, '1080p': false, + '1440p': false, '2160p': false }, hls: { diff --git a/server/tests/api/videos/video-hls.ts b/server/tests/api/videos/video-hls.ts index f3dbbb114..d1720d0d9 100644 --- a/server/tests/api/videos/video-hls.ts +++ b/server/tests/api/videos/video-hls.ts @@ -202,6 +202,7 @@ describe('Test HLS videos', function () { '480p': true, '720p': true, '1080p': true, + '1440p': true, '2160p': true }, hls: { -- cgit v1.2.3