ActivityPub-federated video streaming platform using P2P directly in your web browser
Wait segment sha processing
Chocobozzzdd84f4f2639c
diff --git a/server/tests/api/live/live.ts b/server/tests/api/live/live.tsindex 0a7ae8536d..3f2a304bee 100644--- a/server/tests/api/live/live.ts+++ b/server/tests/api/live/live.ts@@ -519,7 +519,7 @@ describe('Test live', function () {}const minBitrateLimits = {- 720: 5000 * 1000,+ 720: 4800 * 1000,360: 1000 * 1000,240: 550 * 1000}diff --git a/shared/server-commands/videos/live-command.ts b/shared/server-commands/videos/live-command.tsindex a0e0c7c8fb..b163f7189e 100644--- a/shared/server-commands/videos/live-command.ts+++ b/shared/server-commands/videos/live-command.ts@@ -186,6 +186,15 @@ export class LiveCommand extends AbstractCommand {defaultExpectedStatus: HttpStatusCode.OK_200})+ const video = await server.videos.get({ id: videoUUID })+ const hlsPlaylist = video.streamingPlaylists[0]++ const shaBody = await server.streamingPlaylists.getSegmentSha256({ url: hlsPlaylist.segmentsSha256Url })++ if (!shaBody[segmentName]) {+ throw new Error('Segment SHA does not exist')+ }+error = false} catch {error = true