"use client"; import { useEffect, useRef, useState } from "react"; import { choosePlayback, supportsNativeHls } from "@/lib/video-playback"; export interface VideoPlayerProps { hlsUrl: string; poster: string | null; label: string; } /** * Real