mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-19 07:26:59 +01:00
14 lines
339 B
TypeScript
14 lines
339 B
TypeScript
import { convertFileSrc } from '@tauri-apps/api/core';
|
|
import React from 'react';
|
|
|
|
interface Props {
|
|
bodyPath: string;
|
|
}
|
|
|
|
export function VideoViewer({ bodyPath }: Props) {
|
|
const src = convertFileSrc(bodyPath);
|
|
|
|
// eslint-disable-next-line jsx-a11y/media-has-caption
|
|
return <video className="w-full" controls src={src}></video>;
|
|
}
|