diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-26 16:25:36 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-26 16:25:36 +0100 |
commit | 52201311e1973a12960466232d4dec861e8258ee (patch) | |
tree | 9203bfec042a3e5d46e67170433b079e31239e8a /server/tests/api/videos/video-hls.ts | |
parent | 08eb3dca8257ad121ad74b180dc19c75466e221d (diff) | |
download | PeerTube-52201311e1973a12960466232d4dec861e8258ee.tar.gz PeerTube-52201311e1973a12960466232d4dec861e8258ee.tar.zst PeerTube-52201311e1973a12960466232d4dec861e8258ee.zip |
Add codec information in HLS playlist
Diffstat (limited to 'server/tests/api/videos/video-hls.ts')
-rw-r--r-- | server/tests/api/videos/video-hls.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/tests/api/videos/video-hls.ts b/server/tests/api/videos/video-hls.ts index 289209177..bde3b5656 100644 --- a/server/tests/api/videos/video-hls.ts +++ b/server/tests/api/videos/video-hls.ts | |||
@@ -66,7 +66,10 @@ async function checkHlsPlaylist (servers: ServerInfo[], videoUUID: string, hlsOn | |||
66 | const masterPlaylist = res.text | 66 | const masterPlaylist = res.text |
67 | 67 | ||
68 | for (const resolution of resolutions) { | 68 | for (const resolution of resolutions) { |
69 | expect(masterPlaylist).to.match(new RegExp('#EXT-X-STREAM-INF:BANDWIDTH=\\d+,RESOLUTION=\\d+x' + resolution + ',FRAME-RATE=\\d+')) | 69 | const reg = new RegExp('#EXT-X-STREAM-INF:BANDWIDTH=\\d+,RESOLUTION=\\d+x' + resolution + ',FRAME-RATE=\\d+,CODECS="avc1.64001f,mp4a.40.2"') |
70 | |||
71 | expect(masterPlaylist).to.match(reg) | ||
72 | expect(masterPlaylist).to.contain(`${resolution}.m3u8`) | ||
70 | expect(masterPlaylist).to.contain(`${resolution}.m3u8`) | 73 | expect(masterPlaylist).to.contain(`${resolution}.m3u8`) |
71 | } | 74 | } |
72 | } | 75 | } |