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

Function decodeVideo

apps/web/app/api/upload/[...route]/signed.ts:18–19  ·  view source on GitHub ↗
(video: typeof Db.videos.$inferSelect)

Source from the content-addressed store, hash-verified

16import { parseVideoIdOrFileKey } from "../utils";
17
18const decodeVideo = (video: typeof Db.videos.$inferSelect) =>
19 decodeStorageVideo(video);
20
21function contentTypeForSubpath(subpath: string): string {
22 if (subpath.endsWith(".json")) return "application/json";

Callers 1

signed.tsFile · 0.85

Calls 1

decodeStorageVideoFunction · 0.90

Tested by

no test coverage detected