Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

remove HLSPlaylistS3Path

Brendan Allan4cdafd7006b6
diff --git a/apps/web/app/api/desktop/video/create/route.ts b/apps/web/app/api/desktop/video/create/route.ts
index e77cd05db..fb946673a 100644
--- a/apps/web/app/api/desktop/video/create/route.ts
+++ b/apps/web/app/api/desktop/video/create/route.ts
@@ -87,13 +87,7 @@ export async function GET(req: NextRequest) {
ownerId: user.id,
awsRegion: awsRegion,
awsBucket: awsBucket,
- source:
- recordingMode === "hls"
- ? {
- type: "local",
- HLSPlaylistS3Path: `${user.id}/${id}/m3u8/stream.m3u8`,
- }
- : undefined,
+ source: recordingMode === "hls" ? { type: "local" } : undefined,
});
if (
diff --git a/packages/database/schema.ts b/packages/database/schema.ts
index dddb9f7ae..e2c785763 100644
--- a/packages/database/schema.ts
+++ b/packages/database/schema.ts
@@ -156,9 +156,7 @@ export const videos = mysqlTable(
createdAt: timestamp("createdAt").notNull().defaultNow(),
updatedAt: timestamp("updatedAt").notNull().defaultNow().onUpdateNow(),
source: json("source")
- .$type<
- { type: "MediaConvert" } | { type: "local"; HLSPlaylistS3Path?: string }
- >()
+ .$type<{ type: "MediaConvert" } | { type: "local" }>()
.notNull()
.default({ type: "MediaConvert" }),
},