Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: Players metadata

Richie McIlroyb6e22b85e434
diff --git a/apps/web/app/s/[videoId]/page.tsx b/apps/web/app/s/[videoId]/page.tsx
index d6c0c7c66..dcec983be 100644
--- a/apps/web/app/s/[videoId]/page.tsx
+++ b/apps/web/app/s/[videoId]/page.tsx
@@ -223,17 +223,18 @@ export async function generateMetadata(
buildEnv.NEXT_PUBLIC_WEB_URL
).toString(),
],
- player: new URL(
- `/s/${videoId}`,
- buildEnv.NEXT_PUBLIC_WEB_URL
- ).toString(),
- playerWidth: 1280,
- playerHeight: 720,
- playerStream: new URL(
- `/api/playlist?userId=${video.ownerId}&videoId=${video.id}`,
- buildEnv.NEXT_PUBLIC_WEB_URL
- ).toString(),
- playerStreamContentType: "video/mp4",
+ players: {
+ playerUrl: new URL(
+ `/s/${videoId}`,
+ buildEnv.NEXT_PUBLIC_WEB_URL
+ ).toString(),
+ streamUrl: new URL(
+ `/api/playlist?userId=${video.ownerId}&videoId=${video.id}`,
+ buildEnv.NEXT_PUBLIC_WEB_URL
+ ).toString(),
+ width: 1280,
+ height: 720,
+ },
},
robots: robotsDirective,
};