expect(sha256(segmentBody)).to.equal(shaBody[videoName][range])
}
+// ---------------------------------------------------------------------------
+
async function checkLiveSegmentHash (options: {
server: PeerTubeServer
baseUrlSegment: string
expect(sha256(segmentBody)).to.equal(shaBody[segmentName])
}
+// ---------------------------------------------------------------------------
+
async function checkResolutionsInMasterPlaylist (options: {
server: PeerTubeServer
playlistUrl: string
? i
: `-${resolution}`
- expect(text).to.contain(`${suffix}.m3u8?videoFileToken=${videoFileToken}`)
+ expect(text).to.contain(`${suffix}.m3u8?videoFileToken=${videoFileToken}&reinjectVideoFileToken=true`)
}
const resolutionPlaylists = extractResolutionPlaylistUrls(hls.playlistUrl, text)
: '.mp4'
expect(text).to.contain(`${extension}?videoFileToken=${videoFileToken}`)
+ expect(text).not.to.contain(`reinjectVideoFileToken=true`)
}
}