Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(workflows): pass output verification URL to media server edit job

Richie McIlroyb388592b9aa6
diff --git a/apps/web/workflows/edit-video.ts b/apps/web/workflows/edit-video.ts
index 9b73658f2..8202d76ce 100644
--- a/apps/web/workflows/edit-video.ts
+++ b/apps/web/workflows/edit-video.ts
@@ -142,6 +142,7 @@ async function startMediaServerEditJob(
userId: string;
sourceUrl: string;
outputPresignedUrl: string;
+ outputVerificationUrl?: string;
thumbnailPresignedUrl: string;
previewGifPresignedUrl: string;
webhookUrl: string;
@@ -261,6 +262,12 @@ async function renderVideoEditOnMediaServer(
)
.pipe(runPromise);
+ const outputVerificationUrl = await bucket
+ .getInternalSignedObjectUrl(outputKey, {
+ expiresIn: MEDIA_SERVER_PRESIGNED_GET_EXPIRES_SECONDS,
+ })
+ .pipe(runPromise);
+
const thumbnailPresignedUrl = await bucket
.getInternalPresignedPutUrl(
thumbnailKey,
@@ -301,6 +308,7 @@ async function renderVideoEditOnMediaServer(
userId,
sourceUrl,
outputPresignedUrl,
+ outputVerificationUrl,
thumbnailPresignedUrl,
previewGifPresignedUrl,
webhookUrl,