diff --git a/apps/web/components/LocalVideo.tsx b/apps/web/components/LocalVideo.tsx new file mode 100644 index 0000000..d1064ad --- /dev/null +++ b/apps/web/components/LocalVideo.tsx @@ -0,0 +1,11 @@ +import { useMemo } from "react"; + +interface LocalVideoProps extends React.ComponentPropsWithoutRef<"video"> { + path: string; +} + +export default function LocalVideo({ path, ...props }: LocalVideoProps) { + const src = useMemo(() => `/api/files?path=${encodeURIComponent(path)}`, [path]); + + return