"use client"; import { forwardRef, useEffect, useImperativeHandle, useRef, } from "react"; import Hls from "hls.js"; export type KickPlayerHandle = { 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; }; // Kick VODs have no iframe embed, so we play their persisted HLS manifest in a // native