- await makeRawRequest(file.torrentUrl, 200)
- await makeRawRequest(file.fileUrl, 200)
+ if (resolution >= 720) {
+ expect(file.fps).to.be.approximately(60, 2)
+ } else {
+ expect(file.fps).to.be.approximately(30, 2)
+ }
+
+ const filename = `${video.uuid}-${resolution}-fragmented.mp4`
+ const segmentPath = buildServerDirectory(servers[0], join('streaming-playlists', 'hls', video.uuid, filename))
+
+ const probe = await ffprobePromise(segmentPath)
+ const videoStream = await getVideoStreamFromFile(segmentPath, probe)
+
+ expect(probe.format.bit_rate).to.be.below(bitrateLimits[videoStream.height])
+
+ await makeRawRequest(file.torrentUrl, HttpStatusCode.OK_200)
+ await makeRawRequest(file.fileUrl, HttpStatusCode.OK_200)