MCPcopy Index your code
hub / github.com/CapSoftware/Cap / getCompletedMetadata

Function getCompletedMetadata

apps/web/workflows/edit-video.ts:368–382  ·  view source on GitHub ↗
(
	videoId: string,
)

Source from the content-addressed store, hash-verified

366}
367
368async function getCompletedMetadata(
369 videoId: string,
370): Promise<VideoEditRenderResult["metadata"] | null> {
371 const [video] = await db()
372 .select({
373 duration: videos.duration,
374 width: videos.width,
375 height: videos.height,
376 fps: videos.fps,
377 })
378 .from(videos)
379 .where(eq(videos.id, videoId as Video.VideoId));
380
381 return getMetadataFromVideoRow(video);
382}
383
384async function probeVideoOnMediaServer(
385 mediaServerUrl: string,

Callers 1

waitForEditCompletionFunction · 0.70

Calls 2

dbFunction · 0.90
getMetadataFromVideoRowFunction · 0.70

Tested by

no test coverage detected