'use client'; /** * `` — HLS (`.m3u8`) playback via * `hls-video-element`, which lazy-loads `hls.js` only on browsers that * don't ship native HLS (everything except Safari). */ import 'hls-video-element'; import './jsx-augmentation'; import { MediaPosterImage } from 'media-chrome/react'; import type { HlsSource, VideoPlayerSettings } from '../types'; export interface HlsCanvasProps extends VideoPlayerSettings { readonly source: HlsSource; } export function HlsCanvas({ source, autoPlay, muted, loop, crossOrigin = 'anonymous', }: HlsCanvasProps) { return ( <> {source.poster && } ); }