"use client"; import { forwardRef, useEffect, useImperativeHandle, useRef, } from "react"; export type FilePlayerHandle = { seekTo: (seconds: number, unit?: "seconds") => void; }; type Props = { url: string; playing?: boolean; onReady?: () => void; onPlay?: () => void; onPause?: () => void; onProgress?: (state: { playedSeconds: number }) => void; onError?: () => void; }; // A plain media file in a native