refactor: optimize bundle size

This commit is contained in:
2023-12-05 12:58:17 +00:00
parent 6905fb63fd
commit 13edd58987
21 changed files with 501 additions and 293 deletions

View File

@ -17,7 +17,7 @@ export interface VideoPlayerProps {
poster?: string;
}
export function LiveVideoPlayer(props: VideoPlayerProps) {
export default function LiveVideoPlayer(props: VideoPlayerProps) {
const video = useRef<HTMLVideoElement>(null);
const hlsObj = useRef<Hls>(null);
const streamCached = useMemo(() => props.stream, [props.stream]);