Files
yaak/src-web/components/responseViewers/VideoViewer.tsx
2025-11-23 08:38:13 -08:00

13 lines
299 B
TypeScript

import { convertFileSrc } from '@tauri-apps/api/core';
interface Props {
bodyPath: string;
}
export function VideoViewer({ bodyPath }: Props) {
const src = convertFileSrc(bodyPath);
// biome-ignore lint/a11y/useMediaCaption: none
return <video className="w-full" controls src={src} />;
}